Creator Help

remove

This topic describes the syntax and usage of the list - remove function in Zoho Creator .

Description

The List - remove function removes and returns the element at the specified index (first element's index is '0').

Syntax

list.remove(<index>)

The contains function syntax has the following arguments.

list - Required - The list from which you want to get the element based on the specified index.

index - Required. The position of the element to be searched for.  

 

Return Value

Returns true if element is present in the list, otherwise false. 

Example

colors = {"red", "blue", "green", "red", "yellow", "blue"};
a = colors.remove(2);
//removes the value "green" from the list and returns the removed string

Top