listFirst

Gets the first element of a list.

listFirst(list [, delimiters]) → returns String

listFirst Argument Reference

list
Required

delimiters
Default: ,

Values:
  • ,
  • |
  • ;
  • chr(9)
  • chr(10)
  • chr(13)

Examples sample code invoking the listFirst function


Simple listFirst Example

A very basic listFirst example

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

Expected Result: one


Traversing a List with listFirst and listRest

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