Forum Discussion
Brian_Moore_603
Nimbostratus
Mar 05, 2012Does iRule programming use "short circuit logic"?
I have an irule that we developed today and we used a couple of operators and was wandering if the programming logic will use a term called "short circuiting" so that the irule didn't run through processing something it already knew about further up in the syntax.
Melloyellow
- hoolio
Cirrostratus
Hi Brian,when RULE_INIT { if { 0 && $nonexistentvariable} { log local0. "got here" } else { log local0. "short circuited" } }
when RULE_INIT { if { 0 || $nonexistentvariable} { log local0. "got here" } else { log local0. "short circuited" } }
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