Forum Discussion
Robert_47833
Jun 03, 2011Altostratus
switch -glob to match two or more than two conditions
Hi,I wanna to achieve this ,use switch -glob instead of if/else chain
if { [[TCP::local_port clientside] != 443] && [[HTTP::uri] starts_with "/mobile/auth"] }
{
HTTP::redirect "h...
hooleylist
Jun 03, 2011Cirrostratus
A switch will only allow you to check one string to see if it matches specific cases. You can't check the TCP::local_port value and the URI. So what you have there is as good as it gets.
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects