Creator Help

List - get

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

Description

The get function returns the element at the specified postion in the list. The first element will be at index '0', the second element at "1" and so on.

Syntax

<list>.get(<index>)

The get 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", "yellow", "blue"};
x = colors.get(0);          // returns the color "red" from the list 

Top

creator-api-guide.html">Zoho Creator API Guide
  • Community
  • Developers
  • Facebook
  • Twitter
  • Youtube