all
FEEL built-in function · FEEL list functions
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.
Parameters
| Parameter | Type | Description |
|---|---|---|
| list | list of booleans | booleans, as one list or as separate arguments |
Examples
all([true, true])
true
Try it ↑
all([true, false])
false
Try it ↑
all([])
true
Try it ↑
Edge cases and null handling
all([true, null])
null
Try it ↑
Part of FEEL list functions: how positions, nulls and single values behave across all of them, aggregating over lists of contexts, and every function side by side.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).