FEEL

string join

FEEL built-in function · FEEL string functions

string join(list, delimiter?)

Concatenates a list of strings into one string, optionally separated by a delimiter. Null elements in the list are skipped.

This is the list counterpart of the + operator. Elements must be strings: a list of numbers gives null, so convert with for x in list return string(x) first.

Parameters

ParameterTypeDescription
listlist of stringsthe strings to concatenate; null elements are ignored
delimiterstringseparator between elements (optional)

Examples

string join(["a", "b", "c"], ", ")
a, b, c Try it ↑
string join(["a", null, "c"])

Edge cases and null handling

string join([], ", ")
(empty string) Try it ↑
string join([1, 2], ", ")

Numbers are not converted.

string join(for x in [1, 2] return string(x), ", ")

Related functions

split · concatenate

Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).