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