Skip to main content

containsValue (Function)

Function checks if the map contains the value.

Syntax

<BOOL> map:containsValue(<OBJECT> map, <INT|LONG|FLOAT|DOUBLE|BOOL|STRING> value)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
mapThe map the needs to be checked on containing the value or not.OBJECTNoYes
valueThe value to be checked.INT LONG FLOAT DOUBLE BOOL STRINGNoYes

Example 1

map:containsValue(stockDetails, 'IBM')

Returns true if the stockDetails map contains value IBM else it returns false.