General operators
Description of general operators used in decision tables
List of general operators
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.
Anything Operator (anything)
The anything operator (anything) returns true
always.
Equals Operator (=)
Compares two scalar values. The equal operator compares mainly:
String
Number
Boolean
Equal Operator examples:
IS IN Operator (IN)
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!
IS IN Operator examples:
NOT IN Operator (NOT IN)
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
[]
NOT IN Operator examples:
Greater than OR Equal Operator (>=)
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
Greater than OR Equal Operator examples:
Greater Operator (>)
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
Greater Operator examples:
Less than OR Equal Operator (<=)
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
Less than OR Equal Operator examples:
Less than Operator (<)
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.
Less than Operator examples:
Between Operator (between)
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
Between Operator examples:
Between Left Open Operator
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
Between Right Open Operator
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
Not Equal Operator (<>)
Compares two scalar values. The not equal operator compares mainly:
String
Number
Boolean
Not Equal Operator examples:
Is Null
The is null operator (IsNull) returns true if the value is empty.
Is Not Null
The is not null operator (isNotNull) returns true if the value is not empty.
Contains Text Operator (containsText)
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
Contains Text Operator examples:
Contains In Operator (containsIn)
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
Contains in Operator examples:
Not Contains In Operator (notContainsIn)
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
Contains Text Operator examples:
Equal Array Operator (equalArray)
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
[]
equalArray Operator examples:
Else Operator (ELSE)
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.
Last updated