Creator Help

containKey

This topic describes the syntax and usage of the containValue() function in Zoho Creator .

Description

The containKey() function returns a Boolean value - True, if this map contains a mapping for the specified key;
- False, if this map does not contain a mapping for the specified key.

Syntax

<map>.containKey(<key>) 

Return Value

Returns True, if this map maps one or more keys to the specified value; otherwise false

Example    

serviceURL = map();                      
serviceURL.put("creator","http://creator.zoho.com");

serviceURL.put("writer", "http://writer.zoho.com");
serviceURL.put("sheet", "http://sheet.zoho.com");

serviceURL.containkey("creator");      //returns true

Top