Arithmetic
The grammar supports arithmetic and mathematical operations:
20 - 18
AS 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:
YAML
JSON
age : 0
{
age : 0
}
18
AS career start
age - career start
AS professional experience
Arithmetic expressions can be arbitrarily complex using parentheses:
(20 - 18) * 12
AS 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

Reference

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...
Copy link