Join
Description
Pure function joining a string array into a single string with the given separator between each element. A null or empty array returns an empty string.
When to use
Use Join to reassemble an array of strings into a single delimited string — for example, after filtering or transforming parts that were produced by Split. It is also useful for building CSV lines or constructing a comma-separated list for an API parameter. For joining exactly two strings without a separator, Concatenate strings is simpler.
Pins
Input pins
| Pin | Type | Default | Notes |
|---|---|---|---|
| Parts | string[] | — | The array of strings to join. An empty array produces an empty string, and so does a null array — for example an optional array field that arrived as JSON null. |
| Separator | string | , | The string inserted between each pair of adjacent elements. Not added before the first or after the last element. |
Output pins
| Pin | Type | Notes |
|---|---|---|
| Result | string | All elements of parts concatenated with separator between each one. |
Example
Rebuild a CSV row after uppercasing each field. Split the row with Split (Separator set
to ","), pass each Element output through Uppercase on the Loop body execution
output of For each, then collect the results into an array. Wire the array into the
Parts input of Join (Separator set to ",") — the Result output is the transformed
CSV row, ready to log.