ListGetAt()

Gets a list element at a specified position.

ListGetAt( list=string, position=number, delimiters=string, includeEmptyFields=boolean );

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

false

Examples

writeOutput(listGetAt("a,,b,c,",3,",",true));//Returns b

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

See also