Grammar Rules
Learn about the syntax for commonly-used FEEL expressions through simple examples. For the complete definition of FEEL syntax, see Decision Model and Notation (DMN), v1.1.
Arithmetic Expressions
| Name | FEEL Expression | Return Value | 
|---|---|---|
| Addition (+) | 0.15+30 | 30.15 | 
| Subtraction (-) | 15-30 | -15 | 
| Multiplication (*) | .20*40.02 | 8.004 | 
| Division (/) | 1/50 | 0.02 | 
| Exponentiation (**) | 2**3 | 8 | 
Interval Expressions
| Start Value | End Value | FEEL Expression | Return Value | 
|---|---|---|---|
| Inclusive | Inclusive | 15 in [15..30] | true | 
| Exclusive | Exclusive | 15 in (15..30) | false | 
| Exclusive | Inclusive | 30 in (15..30] | true | 
| Inclusive | Exclusive | 30 in [15..30) | false | 
Note:
In decision tablet input entry and input/output allowed value cells, you can use intervals or list of intervals to test against the input data.Comparison Expressions
| Name | FEEL Expression | Return Value | 
|---|---|---|
| Less than (<) | 8<2**3 | false | 
| Less than or equal to (<=) | 15 in (<=15) | true | 
| Equal (=) | 8=2**3 | true | 
| Greater than (>) | 30 in (>30) | false | 
| Greater than or equal to (>=) | 1/5>=0.20 | true | 
| Not equal to (!=) | 8!=2**3 | false | 
Note:
In decision table input entry and input/output allowed value cells, you can use comparison operators to define unary expressions.Other Expressions
| Name | FEEL Expression | Return Value | 
|---|---|---|
| Disjunction | (2*2=2**2) or (3*2=3**2) | true | 
| Conjunction | (2*2=2**2) and (3*2=3**2) | false | 
| Negation | not(2*2=2**2) | false | 
Note:
In decision tablet input entry and input/output allowed value cells, you can use comma-separated list of values to specify disjunction.