Whatever message this page gives is out now! Go check it out!
ListLast(list [, delimiters, includeEmptyFields ])Parameter | Description |
includeEmptyFields | Optional. Set to yes to include empty values. |
list | A list or a variable that contains a list. |
delimiters | A string or a variable that contains one. Characters that separate list elements. The default value is comma. If this parameter contains more than one character, ColdFusion processes each occurrence of each character as a delimiter; you cannot specify a multicharacter delimiter. |
<cfset myList = "one hundred, two hundred, three hundred"><cfset MyValue = #trim(ListLast(myList)#><cfscript>
myList="Tokyo,Bangkok,Jakarta,Manila,Bangalore,Shanghai";
WriteOutput(ListLast(myList)); //Returns the last element in the list, Shanghai
</cfscript>