\\
<=[[4rpl:start#lists| Lists]]~~NOTOC~~
<=[[4rpl:start| Index]]
* [[4rpl:commands:getlistelement|Get]]
* [[4rpl:commands:setlistelement|Set]]
====== GetListElement ======
GetListElement (<-list I) ->element
===== Description =====
Returns the value at the specified index of a list. Lists are indexed from zero.
Note: If a list is stored in a variable, this can be abbreviated to <-list[<-index].
===== Examples =====
Split("1,2,3,4,5,6" ",") ->list
6 0 do
Trace (<-list I GetListElement) #functionally equivalent
Trace (<-list[I]) #functionally equivalent
loop
<=[[4rpl:start| Index]]