Unary tests can be used only for input entries of a decision table. They are a special kind of expression with additional operators. The operators get the value of the input expression implicitly as the first argument.
The result of the expression must be either
A unary test expression is
true if one of the following conditions is fulfilled:
- the expression evaluates to
truewhen the input value is applied to it
- the expression evaluates to a list and the input value is equal to at least one of the values in that list
- the expression evaluates to a value and the input value is equal to that value
Compare the input value to
|less than or equal|
|greater than or equal|
- less than/greater than are only supported for:
Test if the input value is within the interval
An interval can be open
]x..y[ or closed
[x..y]. If the interval is open then the value is not included.
Test if at least of the expressions is
Test if the expression is
It is also possible to use a boolean expression instead of an operator. For example, invoking a built-in function.
The input value can be accessed by the special variable