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

ParameterTypeDescription
listlistthe list to search
elementanythe value to look for; may be null

Examples

list contains([1, 2, 3], 2)
list contains([1, null, 3], null)

Related functions

index of · count

Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).