Forum Discussion
Naman_65674
Oct 20, 2011Nimbostratus
Best Practice: Regex vs number of if/else
Hi, I previously had a rule that had: if { $login == 1 && ([string first "OP=help" [HTTP::header "location"]] == -1) && ([string first "OP=token_lo...
Michael_Yates
Nov 01, 2011Nimbostratus
Hi Naman,
I am guessing that you are running v9.x.x if you are using "matchclass". If you are running v10.x.x you should use "class match".
Try this:
if { [matchclass [HTTP::header "Location"] contains $::error_msgs ] } {
....do something...
}
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