ListFirst()
Gets the first element of a list.
ListFirst( list=string, delimiters=string, includeEmptyFields=boolean, count=number );
Returns: String
Examples
writeOutput(listFirst("lucee,dev,LAS"));//Expected output lucee
//Member Function with @ delimiter
strList="dev@LAS@lucee";
writeDump(strList.listFirst("@"));//Expected output dev
See also
- Lists
- Strings
- string.listFirst()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)