Operands for conditions are boolean operators which are utilized to unify or combine multiple security rule conditions to create more advanced security rules:
Operands |
Description |
AND |
Most classic operand, which combines multiple security conditions by evaluating them to true if all of the conditions also evaluate to true at the same time. The general syntax for security rule conditions looks as follows: (EXPRESSION) && (EXPRESSION) (EXPRESSION) and (EXPRESSION) |
OR |
The second classic operand, which compares to logical evaluation and returns true if at least one of them returns true as well. The syntax looks as follows: (EXPRESSION) || (EXPRESSION) (EXPRESSION) or (EXPRESSION) |
EQUAL |
This operand, not case-sensitive, compares, for example, resource attributes with a string value, and evaluates to true if they are identical: (EXPRESSION) = (EXPRESSION) |
STRICT EQUAL | Works exactly like EQUAL; however, makes a strict comparison of the resource attribute with a value which is case sensitive. It compares not only the value, but also the value types, such as whether '1' is also an integer rather than a string. The syntax looks as follows: (EXPRESSION) == (EXPRESSION) |
NOTEQUAL | NOTEQUAL serves the opposite purpose of EQUAL and compares whether the resource type is different from the defined value: (EXPRESSION) != (EXPRESSION) |
STRICT NOT EQUAL | Exact opposite of what STRICT EQUAL does. It compares, strictly, whether the resource type is different from the defined value and value type: (EXPRESSION) !== (EXPRESSION) |
NOT |
This operand reverses a boolean value of an expression: !(EXPRESSION) |
LIKE |
This operand does a case-insensitive comparison and allows the use of regular expression operators, like an asterisk (*) for a wildcard: For example: user.group like US.* (EXPRESSION) like (EXPRESSION) |
MATCHES |
Typical MATCHES operand, which makes a case-sensitive comparison; however, allows the use of regular expression operators, like an asterisk (*) for a wildcard: (EXPRESSION) matches (EXPRESSION) |