listFirst

Gets the first element of a list.

listFirst(list [, delimiters]) → returns string

listFirst Argument Reference

list string
Required

delimiters string
Default: ,

Examples sample code invoking the listFirst function

A very basic listFirst example

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

Expected Result: one

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

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

Expected Result: three


Fork me on GitHub