General operators
Description of general operators used in decision tables
Last updated
Description of general operators used in decision tables
Last updated
Every condition cell in the decision table can have a different operator. These are the general operators which you can choose from:
All the input values (left operands) are auto-casted (meaning the value will be converted to the data type needed by the operator, whenever possible).
ALL THE RIGHT SIDE OPERANDS ARE ALSO AUTOCASTED.
THUS NO QUOTEMARKS SHOULD BE USED IN THE TABLE VALUES.
We use the double quote marks in the table values only to highlight the fact that these will be converted to string on the backend.
The anything operator (anything) returns true
always.
Compares two scalar values. The equal operator compares mainly:
String
Number
Boolean
The IS IN operator ( in
) returns true
if the right operand contains the left operand, and false
otherwise.
Members of the set can be separated by pipe (|), comma (,), semicolon (;)
The right operand has to be an array []
Only exact matches!
The NOT IN operator (not in
) returns true
if the right operand does not contain the left operand, and false
otherwise.
Members of the set can be separated by pipe (|), comma (,), semicolon (;)
The right operand has to be an array []
The greater than or equal operator (>=
) returns true
if the left operand is greater than or equal to the right operand, and false
otherwise.
Numbers can be decimal or integer
String comparison is similar to JS
The greater operator (>
) returns true
if the left operand is greater than the right operand, and false
otherwise.
Numbers can be decimal or integer
String comparison is similar to JS
The less than or equal operator (<=
) returns true
if the left operand is less than or equal to the right operand, and false
otherwise.
Numbers can be decimal or integer
String comparison is similar to JS
The less than operator (<
) returns true
if the left operand is less than the right operand, and false
otherwise.
Numbers can be decimal or integer
String comparison is similar to JS.
The between operator (between
) returns true
if the left operand is between or equal to the right operand, and false
otherwise.
The left operand can be Number, String, or Boolean
The right operand has to be an Array of two values
The between left open operator (betweenLeftOpen
) returns true
if the request value falls between the interval excluding the lower limit (left value) and including the upper limit (right value). Otherwise it returns false.
The left operand can be Number, String, or Boolean
The right operand has to be an Array of two values
The between right open operator (betweenRightOpen
) returns true
if the request value falls between the interval including the lower limit (left value) and excluding the upper limit (right value). Otherwise it returns false.
The left operand can be Number, String, or Boolean
The right operand has to be an Array of two values
Compares two scalar values. The not equal operator compares mainly:
String
Number
Boolean
The is null operator (IsNull) returns true if the value is empty.
The is not null operator (isNotNull) returns true if the value is not empty.
The contains text operator (containsText
) returns true
if the left operand contains in the right operand, and false
otherwise.
Members of the set can be separated by pipe (|), comma (,), semicolon (;)
The left operand can be Number, String, or Boolean or Array of these data types
It is matching not only the exact matches but also the substrings
The contains in operator (containsIn
) returns true
if any of the elements in the right operand is included in the element/elements of the left operand. Otherwise false
is returned.
true
is returned when any of the elements in the right operand is included in any substring of the left operand.
Members of the set can be separated by pipe (|), comma (,), semicolon (;)
The left operand can be Number, String, Boolean or Array of these data types
The not contains in operator (notContainsIn
) returns true
if none of the elements in the right operand is included in the element/elements of the left operand. Otherwise false
is returned.
Members of the set can be separated by pipe (|), comma (,), semicolon (;)
The left operand can be Number, String, Boolean or Array of these data types
The Equal Array operator ( equalArray ) returns true
if all the values inside the right operand are substrings of one of the values inside left operand.
Members of the set can be separated by pipe (|), comma (,), semicolon (;)
The left operand has to be an array []
The ELSE is a special kind of operator, whose returned value is independent of the respective input variable of the column. Instead, the ELSE operator returns true
if no row has passed up to the time of evaluation of the condition cell.
Note that by definition:
there can always be at most one passing row containing the ELSE operator
when the ELSE operator is evaluated, it only takes into account conditions above it
The ELSE operator allows you, among other things, to add a so-called default row to your decision table. It is simply a row at the end of the table with ELSE operator in all of its condition cells. By definition, the default row gets triggered whenever there is no other row passing. It can be used e.g. to send an error message to the output.