Forum Discussion
Nov 11, 2013
iRule optimization : store string evaluation as boolean
Is there any advantage to storing the result of a string comparison as a boolean ?
set query_params_exist ( [HTTP::query] ne "" )
if (query_params_exist == 1) {
}
... somewhere else deep in log...
IheartF5_45022
Nacreous
Nov 12, 2013My understanding is that there is no advantage to storing the result as a variable rather than executing
if {[HTTP::query] ne ""}
multiple times.
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