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...
spark_86682
Oct 20, 2011Historic F5 Account
If your logic really looks like that (wanting to detect the absence of any of a number of strings in the same place), then you might also look into creating a class (data group) with your strings and using the class command, which might be even more efficient.
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