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 true or false, 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.

Like

Inclusive word-match

Does the target contain the value?

Not like

Exclusive word-match

Does the target not contain the value?

Different from

Exact word-match

Not an exact match.

Is empty

Key has no value.

Is not empty

Key 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.

Between

Is the key within of the interval given by the values?

Not Between

Is 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 number Age is above 45.

  • In the rule Name-(text) IS EMPTY, the operator checks if the text key Name has no value.