size
Table of Contents
Overview
The size function returns the number of values or elements present in a collection.
Return Type
- NUMBER
Syntax
<variable>=<collectionVariable>.size();
where,
| Parameter | Data type | Description |
| <variable> | NUMBER | Variable which will hold the returned value. |
| <collectionVariable> | COLLECTION | The variable whose size will be returned. |
Examples
productVersion=collection("Creator":5,"CRM":2,"Mail":8); info productVersion.size(); // Returns 3
products=collection("Creator","CRM","Mail"); info products.size();// Returns 3