Creator Help

get

This topic describes the syntax and usage of the Map - get function in Zoho Creator .

Description

The Map - get function returns the string value to which the specified key is mapped.

Syntax

<map>.get(<key>)

The get function syntax has the following arguments.

key - Required. The key to search for in the map. 

Return Value

Returns the String value to which the specified key is mapped. Returns null if the map contains no mapping for this key. 

Example    

serviceURL = map();                       // map constructor to initalize the map variable named serviceURL
serviceURL.put("creator","http://creator.zoho.com");
serviceURL.put("writer","http://writer.zoho.com");
x=serviceURL.get("writer");             //returns "http://writer.zoho.com"        

Top