Operator
- Operator
-
A comparison or evaluation used in rules to compare two things (usually a keys and a value) or assert a statement.
(Relational) operators are used in used when creating rules in a condition, to give a result of
trueorfalse, by comparing two items, or by checking a property of a single item.Table 1. Relational Operators Operator
Meanin
Function
Comment
==Equals
Exact mathematical match.
!=Does not equal
Exact mathematical difference.
LikeInclusive word-match
Does the target contain the value?
Not likeExclusive word-match
Does the target not contain the value?
Different fromExact word-match
Not an exact match.
Is emptyKey has no value.
Is not emptyKey has any value.
<Lesser than
Number is lower than value.
<=Equal to or lesser than
Number is lower than value, or the same.
>Greater than
Number is higher than value.
>=Equal to or greater than
Number is higher than value, or the same.
BetweenIs the key within of the interval given by the values?
Not BetweenIs the key not within of the interval given by the values?
Remainder (%)Is the key evenly divisible with the value?
(Here % means modulo, not percentage.)
Examples:
-
In the rule
Age-(number) > 45, the operator verifies that the numberAgeis above45. -
In the rule
Name-(text) IS EMPTY, the operator checks if the text keyNamehas no value.
-