Choose where you’d like to start

containValue()

Overview

The containValue() function takes mapVariable and searchValue as arguments. It returns true if mapVariable contains the searchValue. Otherwise, returns false.

Return Type

  • Boolean

Syntax

<variable> = <mapVariable>.containValue( <searchValue> );
ParameterDescriptionData type
<variable>Variable which will contain the returned boolean value..BOOLEAN
<mapVariable>The map variable in which the value will be searched for.KEY-VAlUE
<searchValue>The value to be searched for in the map variable.TEXT

Examples

mapVar = {"Product" : "Creator", "Company" : "Zoho"};
boolVal = mapVar.containValue("creator");               //returns false
newBoolVal = mapVar.containValue("Creator");      //returns true

Get Started Now

Execute