ListCompact()
Removes any empty items from the start and end of the list
ListCompact( list=string, delimiters=string, multiCharacterDelimiter=boolean );
Returns: String
Examples
//Simple function
writeOutput(listCompact(',,,Plant,green,save,earth,,'));
//Member function with custom delimiter
strLst="+++1+2+3+4+++++++";
writeDump(strLst.listCompact("+"));
See also
- Lists
- Strings
- string.listCompact()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)