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 ...
nitass
Employee
e.g.
% set param1 ""
% set param2 "null"
null
% put [expr { ($param1 ne "") || ($param2 ne "null") }]
0
% set param1 "test"
test
% set param2 "test"
test
% put [expr { ($param1 ne "") || ($param2 ne "null") }]
1
Jul 05, 2014
Thanks nitass. What CLI are you using to execute interactive TCL ?
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