Forum Discussion
Jul 05, 2014
correct syntax for boolean expressions
I experiencing errors with forming a simple boolean expression that would be valid in most "C like" languages ( if we added an equals sign = 😞
set var1 $var2 && !$var3
error: [wrong args][set ...
Jul 11, 2014
After a lot of trial-and-error, I finally found a syntax that was accepted by BIG-IP iRule editor :
if { [expr {[expr $var1 ne ""] || [expr $var2 ne null]}] } {
set var3 1
}
However I receive runtime error :
01220001:3: TCL error: /Common/my-irule.conf - syntax error in expression " ne ": unexpected operator ne while executing "expr $var1 ne """
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