Choose where you’d like to start

add()

Overview

The add() function takes listVariable and addElement as arguments, and adds the specified element(addElement) to the list variable(listVariable).

Syntax

<listVariable>.add( <addElement >);
ParameterDescriptionData type
<listVariable>The list variable to which the element will be added.LIST
<addElement>

The element to be added to the list.

A list can be specified, but please note that it will be considered as an individual element in the parent list.

Elements of different data-types can be accommodated in the same list if the list is not restricted to a specific data type.

LIST

Examples

Products = List();
Products.add("Creator");
Products.add({"CRM", "Projects"});              
// Now the list will contain {"Creator", {"CRM", "Projects"}}

Get Started Now

Execute