size

Overview

The size function returns the number of values or elements present in a collection.

Return Type

  • NUMBER

Syntax

<variable>=<collectionVariable>.size();

where,

ParameterData typeDescription
<variable>NUMBERVariable 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