ListRest

Returns the remainder of a list after removing the first item

Method Signature

ListRest(list=[string], delimiter=[string], includeEmptyFields=[boolean], multiCharacterDelimiter=[boolean], offset=[integer])

Arguments

Argument
Type
Required
Description
Default

list

string

true

The delimited list to perform operations on

delimiter

string

false

string the list delimiter

,

includeEmptyFields

boolean

false

boolean whether to include empty fields in the returned result

false

multiCharacterDelimiter

boolean

false

boolean whether the delimiter is multi-character

false

offset

integer

false

1

Examples

Simple listRest Example

A very basic listRest example

Run Example

listRest( "one,two,three,four" );

Result: two,three,four

Combining listRest to Shorten the List

Nesting listRest shortens the list by one each time with the first element removed.

Run Example

Result: three,four

Traversing a List with listRest and listFirst

Nesting list functions lets you move through the list in pieces.

Run Example

Result: three

Additional Examples

Run Example

Last updated

Was this helpful?