
Rules
BIG-IP® Reference Guide 4-61
Operators
In a rule, relational operators compare two operands to form relational
expressions. Possible relational operators and expressions are described in
Table 4.10.
In a rule, logical operators modify an expression or connect two expressions
together to form a logical expression. Possible logical operators and
expressions are described in Table 4.11.
Expression Relational Operator
Are two IP addresses equal? <address> equals <address>
Do a string and a regular expression match? <variable_operand> matches_regex <regular_expression>
Are two strings identical? <string> equals <string>
Is the second string a suffix of the first string? <variable_operand> ends_with <string>
Is the second string a prefix of the first string? <variable_operand> starts_with <string>
Does the first string contain the second string? <variable_operand> contains <literal_string>
Is the first string a member of the second string? <variable_operand> equals one of <class>
Table 4.10 The relational operators
Expression Logical Operator
Is the expression not true? not <expression>
Are both expressions true? <expression> and <expression>
Is either expression true? <expression> or <expression>
Table 4.11 The logical operators
Comentarios a estos manuales