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

FunctionSignatureReturns
notnot(negand)Logical negation with three-valued logic: not(true) is false, not(false) is true, and anything else, including null, yields null
isis(value1, value2)Returns true if both values are the same in the FEEL semantic domain
allall(list) or all(b1, …, bN)Returns true if every element is true, false if any element is false, and null otherwise
anyany(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 and b: each cell is the result for that row value of a and column value of b.
a \ btruefalsenull
truetruefalsenull
falsefalsefalsefalse
nullnullfalsenull
true or null
returns true Try it ↑

One true operand is enough for or.

null or false
returns null Try it ↑
1 and true
returns null Try it ↑

A number is not a boolean, so the conjunction is null.

not(null)
returns null Try it ↑

The or table

a or b: each cell is the result for that row value of a and column value of b.
a \ btruefalsenull
truetruetruetrue
falsetruefalsenull
nulltruenullnull

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.

1 = "1"
returns null Try it ↑

Different types: no answer from =.

is(1, "1")
returns false Try it ↑
null = null
returns true Try it ↑
true = null
returns false Try it ↑

Testing against null gives a plain boolean.

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.

ParameterTypeDescription
negandbooleanthe value to negate
not(true)
returns false Try it ↑
not(null)
returns null Try it ↑

Related: all · any

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.

ParameterTypeDescription
value1anyfirst value
value2anysecond value
is(date("2026-07-24"), date("2026-07-24"))
returns true Try it ↑
is(time("12:00:00Z"), time("12:00:00+00:00"))
returns true Try it ↑

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.

ParameterTypeDescription
listlist of booleansbooleans, as one list or as separate arguments
all([true, true])
returns true Try it ↑
all([true, false])
returns false Try it ↑
all([])
returns true Try it ↑
all([true, null])
returns null Try it ↑
all([false, null])
returns false Try it ↑

False wins over null.

all([1])
returns null Try it ↑

Non-boolean elements give 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.

ParameterTypeDescription
listlist of booleansbooleans, as one list or as separate arguments
any([false, true])
returns true Try it ↑
any([])
returns false Try it ↑
any([true, null])
returns true Try it ↑

True wins over null.

any([null, false])
returns null Try it ↑

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:

ExpressionFEELB-FEEL
not(null)nullfalse
true and nullnullfalse
null < 1nullfalse
all([true, null])nullfalse
every x in [1, null] satisfies x > 0nullfalse

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).