list contains
FEEL built-in function · List functions
list contains(list, element)
Returns true if the list contains the element. Unlike the = operator, it can also test for null.
Parameters
| Parameter | Type | Description |
|---|---|---|
| list | list | the list to search |
| element | any | the value to look for; may be null |
Examples
list contains([1, 2, 3], 2)
true
Try it →
list contains([1, null, 3], null)
true
Try it →
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).