Concatenates a list or element to a list.

listAppend(list, value [, delimiters]) → returns string

Member Function Syntax

str.listAppend(value [, delimiters])

listAppend Argument Reference

list string

value string

An element or a list of elements.

delimiters string
Default: ,

Examples sample code invoking the listAppend function

Add 'foo' to the end of this list

listAppend("bar,bar2", "foo")

Expected Result: bar,bar2,foo

Add 'foo' to the end of this list using a custom delimiter

listAppend("bar|bar2", "foo", "|")

Expected Result: bar|bar2|foo

Fork me on GitHub