Forum Discussion
The_Bhattman
Nimbostratus
Mar 05, 2008Does iRULES Support Boolean Short Circuit
Does iRules support Boolean short circuit like Perl does?
For example in Perl a short circuit would like the following
($cat eq "al") && (return "Alcohol");
Could there be something equivilant such as
[HTTP::uri eq "Blah"] && pool pool1
-CB
- hoolio
Cirrostratus
TCL does support boolean short circuiting. So if the first test is anded with the second and the first one fails, the second test isn't attempted. - The_Bhattman
Nimbostratus
Sorry Hoolio,
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