Forum Discussion
Eric_Werner_283
Nimbostratus
15 years agoUse 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
15 years agoHistoric 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
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