Forum Discussion
cpt_ri_F5
Jun 19, 2024Cirrostratus
LTM - iRule operator
Hello, We agree that I can simplify the line : (not [HTTP::header "str1"] equals "str2")) to [HTTP::header "str1"] ne "str2") I have a doubt : https://clouddocs.f5.com/api/irules/Operators...
Jun 19, 2024
Hi cpt_ri_F5,
You can use "ne" operator for string comparisons. The function of the following two lines is the same.
not ([HTTP::header str1] equals "str2")
[HTTP::header str1] ne "str2"
eq ne: Boolean string equal and string not equal. Each operator produces a zero/one result. The operand types are interpreted only as strings
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