ListAppend
Appends an element to a list
Method Signature
Arguments
Argument
Type
Required
Description
Default
list
string
true
string list to filter entries from
value
string
true
The value to append
delimiter
string
false
string the list delimiter
,
includeEmptyFields
boolean
false
boolean whether to include empty fields in the returned result
false
multiCharacterDelimiter
boolean
false
boolean whether the delimiter is multi-character
true
Examples
Simple listAppend Example
Add 'foo' to the end of this list
Result: bar,bar2,foo
Simple listAppend Example with Delimiter
Add 'foo' to the end of this list using a custom delimiter
Result: bar,bar2|foo
Simple listAppend Example with Empty Fields On
CF2018+ Add 'foo,,' to the end of this list using includeEmptyFields as true
Result: bar,bar2,foo,,
Simple listAppend Example with Empty Fields Off
CF2018+ Add 'foo' to the end of this list using includeEmptyFields as false
Result: bar,bar2,foo
Additional Examples
Related
Last updated
Was this helpful?