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 05, 2014
I am not having good luck with a single expr and a complex boolean condition :
set var_1 [expr {($var_2 ne "") || ($var_3 ne null)}]
error: [parse error: PARSE syntax 489 {syntax error in expression "set var_1 [expr {($var_2 ne "") || ($var_3 ne null)}]": variable references require preceding $}][{($var_2 ne "") || ($var_3 ne null)}]
Could the problem here be that I am using variable names that contain underscores ?
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