Choose where you’d like to start

containsValue

Overview

The containsValue function checks if a specified value is present in a collection. It returns true if the value is present in the collection. Otherwise, it returns false.

Note: This function performs a case sensitive search.

Return Type

  • BOOLEAN

Syntax

<variable> = <collectionVariable>.containsValue(<value>);
ParameterData typeDescription
<variable>BOOLEANVariable which will hold the returned boolean value.
<collectionVariable>

COLLECTION

The variable in which the value will be looked for.
<value>Any Data Type

The value to be searched for in the collection.

Examples

 productVersion = collection("Creator" : 5, "CRM" : 2, "Mail" : 8);
 info productVersion.containsValue(2); // Returns true

Get Started Now

Execute