Forum Discussion
Erik_27939
Nimbostratus
Aug 20, 2014How do you handle a null variable in an irule?
I am using the below logic:
if { [string length $sort_dest_pool] > 0 } {
set dest_pool [string trimleft $sort_dest_pool "$loc"]
} else {
set dest_pool $orig_pool
}
...
- Aug 21, 2014
can you try to remove $?
e.g.
% info exists t 0 % set t 1 1 % info exists t 1
Erik_27939
Nimbostratus
Aug 21, 2014Unfortunately, now I am getting this error:
can't read "sort_dest_pool": no such variable while executing "info exists $sort_dest_pool"
Based on that man page you sent on that command, it should have worked. Thoughts?
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
