size()
Table of Contents
Overview
The size() function takes a mapVariable as argument, and returns the count of key-value pairs in the map.
Return Type
- Number
Syntax
<variable>= <mapVariable>.size();
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned number. | NUMBER |
<mapVariable> | The map variable whose count of key-value pairs will be returned. | KEY-VALUE |
Examples
mapVar = {"Product" : "Zoho Creator", "Version" : 5};
size = mapVar.size(); // returns 2
size = mapVar.size(); // returns 2