Forum Discussion
Eric_Werner_283
Nimbostratus
Aug 12, 2010Use of pipe in if statement
I'm trying to find out if I can configure an if statement that checks for one of a series of possible values, like this:
if { $avp_code == 304|305|309} {
do stuff
}
Is the syntax correct, or wou...
Colin_Walker_12
Aug 26, 2010Historic F5 Account
The first thing I notice is that in the RULE_INIT section you'll want to use the static::var form as well.
So set ohostval "lb.site.com" becomes set static::ohostval "lb.site.com"
Other than that though, looks good, assuming you didn't change anything other than moving that chunk up into RULE_INIT
Colin
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
