Skip to main content

contains (Function)

Function checks whether the list contains the specific value.

Syntax

<BOOL> list:contains(<OBJECT> list, <OBJECT|INT|LONG|FLOAT|DOUBLE|BOOL|STRING> value)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
listThe list that needs to be checked on whether it contains the value or not.OBJECTNoYes
valueThe value that needs to be checked.OBJECT INT LONG FLOAT DOUBLE BOOL STRINGNoYes

Example 1

list:contains(stockSymbols, 'IBM')

Returns true if the stockSymbols list contains value IBM else it returns false.