listTrim

trims leading and trailing spaces from each list element

listTrim(list [, delimiters]) → returns string

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

list string
Required

a string list

delimiters string
Default: ,

characters that separate list elements

Compatibility

Lucee:

DEPRECATED since version 4 use ListCompact instead

Examples
Sample code invoking the listTrim function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub