ListGetAt

Gets a list element at a specified position.

ListGetAt( list, position [, delimiters [, includeEmptyFields ] ] )

Returns: String

Argument Description Default
list
string, required

a string list

position
number, required

position of the element to return

delimiters
string, optional

Characters that separate list elements. The default value is comma.

Alias: delimiter

,

includeEmptyFields
boolean, optional

if set to true, empty values are included as well

Examples

writeOutput(listGetAt("a,,b,c,",3,",",true));//Returns b
//Member Function with '/' delimeter
strList="/a//b/c//d";
writeDump(strList.listGetAt(5,"/",true));//Expected output c

See also