Mar 07, 2015
BIG-IP : iRule test that variable exists and has certain value
F5 BIG-IP Virtual Edition v11.4.1 (Build 635.0) LTM on ESXi
What is the simplest most elegant syntax to test that a variable exists and has a certain value ?
For example if I want to determine that myvariable exists and has non-zero value , is this the simplest syntax ?
when HTTP_REQUEST {
set myvariable 0
conditional processing ...
set myvariable 1
more processing ...
if {[info exists $myvariable] && [$myvariable]} {
do something
}