Forum Discussion
Robert_47833
Altostratus
Jun 18, 2012one question in variable
in the syntax ,we normally use :
if { $cjj == 1} {
xxxx
}
I have a question here
sometimes I forget to define this variable cjj,is there any method I can use to make it work in this way:
evulate wether there is a varable cjj,if not define one
such as :
if $cjj exist ,else set cjj x
thanks in advance
4 Replies
Sort By
- Richard__HarlanHistoric F5 AccountYou can use Catch. if there is a error the catch command will catch the error and allow you to work around it with out aborting the iRule
- Robert_47833
Altostratus
yes,catch seems a good command ,but another question raise, - hoolio
Cirrostratus
Or you can use [info exists variable]: - Robert_47833
Altostratus
thanks,your answer is pretty good
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