User Tools

Site Tools


4rpl:commands:getlistelement


Lists Index

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

Index

4rpl/commands/getlistelement.txt · Last modified: 2021/03/02 13:05 by Karsten75