Concatenate multiple values¤
Concatenates multiple values received for an input. If applied to multiple inputs, yields at most one value per input. Optionally removes duplicate values.
Examples¤
Notation: List of values are represented via square brackets. Example: [first, second] represents a list of two values “first” and “second”.
Without input values, no output is generated:
- Returns:
[]
A single value is returned unchanged:
-
Input values:
[a]
-
Returns:
[a]
All values of an input are concatenated into one value. The default glue is the empty string:
-
Input values:
[a, b]
-
Returns:
[ab]
The glue string is inserted between the values:
-
Parameters
- glue:
x
- glue:
-
Input values:
[a, b]
-
Returns:
[axb]
Each input is concatenated separately, yielding one value per input:
-
Input values:
[a, b][1, 2]
-
Returns:
[ab, 12]
Escaped character sequences in the glue are replaced by the actual characters (newline, tab, backslash):
-
Parameters
- glue:
\n\t\\
- glue:
-
Input values: 1.
-
Returns:
Duplicates are removed, also when they span multiple values:
-
Parameters
- glue: ``
- removeDuplicates:
true
-
Input values:
[Albert, Einstein, Albert Einstein]
-
Returns:
[Albert Einstein]
With an empty glue, only whole duplicate values are removed:
-
Parameters
- removeDuplicates:
true
- removeDuplicates:
-
Input values:
[a, b, a]
-
Returns:
[ab]
Values consisting only of the glue collapse to an empty string:
-
Parameters
- glue:
x - removeDuplicates:
true
- glue:
-
Input values:
[x, x]
-
Returns:
[]
Parameter¤
Glue¤
No description
- ID:
glue - Datatype:
string - Default Value:
None
Remove duplicates¤
No description
- ID:
removeDuplicates - Datatype:
boolean - Default Value:
false
Advanced Parameter¤
None
Related Plugins¤
- concat — Concatenate multiple values collapses all values within each input into one string, preserving the boundary between inputs. Concatenate crosses that boundary — it takes one value from each input and produces all combinations, so the output grows with the number of inputs and values.