Forum Discussion
Robert_47833
Altostratus
Jun 03, 2011switch -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...
hoolio
Cirrostratus
Jun 03, 2011A 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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