$set.elementAt($index)
$set[$index]
Returns the element of the set at the index position.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| set | Set | A set from which an element is to be returned. | yes | |
| index | Number | The index of the set from which the element is to be returned. Counting starts at 0 and the chosen index may only be between 0 and $set.size() -1. |
yes |
Type: Number/string/boolean/businss object/set
The element from the set at position index.
list("hello", "how", "are", "you").elementAt(3)
Output: you
list("hello", "how", "are", "you").elementAt(5)
Output: null
list("hello", "how", "are", "you")[2]
Output: are