FEEL boolean functions and three-valued logic
4 built-in functions · DMN 1.6
FEEL booleans have three values: true, false and null. The operators and and or and the function not() follow three-valued logic, so a missing input does not always make a condition null: false and null is false, true or null is true. Negation is a function, not(x), and there is no ! operator.
The truth tables below were computed cell by cell by the engine that runs the playground, in standard FEEL. B-FEEL turns the null cells into false; the table at the end of the page shows it.
All FEEL boolean functions at a glance
| Function | Signature | Returns |
|---|---|---|
| not | not(negand) | Logical negation with three-valued logic: not(true) is false, not(false) is true, and anything else, including null, yields null |
| is | is(value1, value2) | Returns true if both values are the same in the FEEL semantic domain |
| all | all(list) or all(b1, …, bN) | Returns true if every element is true, false if any element is false, and null otherwise |
| any | any(list) or any(b1, …, bN) | Returns true if at least one element is true, false if all are false, and null otherwise |
Truth tables for and, or and not
false wins in a conjunction and true wins in a disjunction, whatever the other operand is. Every other combination with null, or with a value that is not a boolean, gives null.
| a \ b | true | false | null |
|---|---|---|---|
| true | true | false | null |
| false | false | false | false |
| null | null | false | null |
null or false
not(null)
The or table
| a \ b | true | false | null |
|---|---|---|---|
| true | true | true | true |
| false | true | false | null |
| null | true | null | null |
is() versus =
= compares values. Comparing values of different types gives null in standard FEEL, so 1 = "1" is neither true nor false. is(a, b) always answers with true or false: it is true only when both values are the same in the FEEL semantic domain.
Comparing with null is the one place where = does not propagate null: x = null is the usual way to test for a missing value.
is(1, "1")
null = null
Function reference
Each function with its parameters, examples and edge cases.
not(negand)
Logical negation with three-valued logic: not(true) is false, not(false) is true, and anything else, including null, yields null.
| Parameter | Type | Description |
|---|---|---|
| negand | boolean | the value to negate |
not(true)
not(null)
is(value1, value2)
Returns true if both values are the same in the FEEL semantic domain. Unlike =, it never returns null: values of different types give false.
| Parameter | Type | Description |
|---|---|---|
| value1 | any | first value |
| value2 | any | second value |
is(date("2026-07-24"), date("2026-07-24"))
is(time("12:00:00Z"), time("12:00:00+00:00"))
Related: not
all(list) or all(b1, …, bN)
Returns true if every element is true, false if any element is false, and null otherwise. all([]) is true.
all uses three-valued logic. A single false makes the result false, even if there are nulls. Otherwise any null makes it null. Elements that are not booleans also give null.
| Parameter | Type | Description |
|---|---|---|
| list | list of booleans | booleans, as one list or as separate arguments |
all([true, true])
all([true, false])
all([])
all([true, null])
Related: any
any(list) or any(b1, …, bN)
Returns true if at least one element is true, false if all are false, and null otherwise. any([]) is false.
| Parameter | Type | Description |
|---|---|---|
| list | list of booleans | booleans, as one list or as separate arguments |
any([false, true])
any([])
any([null, false])
Related: all
How B-FEEL differs
In standard FEEL an invalid argument makes the result null. The business-friendly
B-FEEL dialect returns a type default instead. Both columns were evaluated by the same engine:
| Expression | FEEL | B-FEEL |
|---|---|---|
| not(null) | null | false |
| true and null | null | false |
| null < 1 | null | false |
| all([true, null]) | null | false |
| every x in [1, null] satisfies x > 0 | null | false |
Related guides
Every result on this page was computed by the Impulse FEEL engine 0.9.1, the interpreter that runs the playground. Last updated .
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).