title | description | ms.author | ms.date | ms.topic | author | ms.reviewer |
---|---|---|---|---|---|---|
List.Get(Integer, var T) Method |
Gets the element at the specified index. |
solsen |
08/26/2024 |
reference |
SusanneWindfeldPedersen |
solsen |
Version: Available or changed with runtime version 1.0.
Gets the element at the specified index.
[Ok := ] List.Get(Index: Integer, var Result: T)
List
Type: List
An instance of the List data type.
Index
Type: Integer
The one-based index of the element to get.
Result
Type: T
The element at the specified index.
[Optional] Ok
Type: Boolean
true if an element exists at the given index, otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
The type T
is a dynamic type. When List
is of type Text
then T
will change to Text
. When List
is of type Integer
, then T
will change to Integer
.