Forum Discussion
Robert_47833
May 12, 2011Altostratus
if,elseif,else, need help
when HTTP_REQUEST {
set uri [HTTP::path]
set queryString [URI::query [HTTP::uri]]
set port [TCP::local_port]
set srcIP [IP::client_addr]
if {$uri equals "/"}
{...
hooleylist
May 17, 2011Cirrostratus
I think the problem is with no spaces before or after the elses:
else{ if {$uri starts_with "/mobile/auth" and $port != 443 }
...
}else
If you put spaces before and after the else statements it should load. But yes, the switch statement should be more efficient than the if/elseif/.../else chain.
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