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 "/"}
{...
Colin_Walker_12
May 17, 2011Historic F5 Account
Generally speaking we always encourage people to use switch over if/else chains where it makes sense. They're more efficient once you get past only a few if/else comparisons.
Colin
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