User Tools

Site Tools


4rpl:commands:getlistelement

This is an old revision of the document!


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.1610121708.txt.gz · Last modified: 2021/01/08 11:01 by 127.0.0.1