Skip to end of banner
Go to start of banner

arrayGetElement

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

Returns the element at the specified index.

Parameters

Return Type

Element of the array type.

Example

for(number i = 0; i < size(watchers); i = i + 1){
    print(getElement(watchers, i) + " is watching this issue.");
}

Prints all the elements of the array watchers.

  1. If index is not number or has negative value the routine returns error.
  2. If index is greater than the size of the array, the routine will return an empty value of the respective type.

Starting with version 2.5 we added the indexing operator. It will work on arrays, strings, dates and interval.

You can simply write in your programs watchers[0] to refer to the first element in the watchers array.

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels