The grammar supports arithmetic and mathematical operations:
20 - 18AS professional experience
Of course, variables or attributes from the schema can also be used within an arithmetic operation.
Let's look at the following scheme and two predefined variables:
age : 0
{age : 0}
18AS career start​age - career startAS professional experience
Arithmetic expressions can be arbitrarily complex using parentheses:
(20 - 18) * 12AS professional experience in months
Arithmetic expressions can also be used directly within a rule:
the professional experience from age - 18 years MUST NOT be LESS than 10
​
Currently the following mathematical operations are supported:
Operator | Name | Discription |
+ | Addition | simple addition |
- | Subtraction | simple subtraction |
* | Multiplication | simple multiplication |
/ | Division | simple division |
MOD | Modulo | remaining |
​ | ​ | more will be added soon... |