ListLast

Gets the last element of a list.

ListLast( list [, delimiters [, includeEmptyFields ] ] )

Returns: String

Argument Description Default
list
string, required

a string list

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

//Simple Example
writeoutput(listLast("Susi ,LAS,,lucee,,,test"));
//Member Function
strList=",I,,love,lucee,,";
writeDump(strList.listLast());

See also