Join texts
Join the items of a list into one text with a separator, e.g. names into Ann, Bo and Cy, leaving out empty items if you like.
Command in the String toolkit · id ooa.string/join · 6 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Items | List | Yes | The texts, as a List variable or ["a", "b"]; numbers and dates are written as text. | |
| Separator | String | No | , | Put between items; a line break is \n. |
| Skip empty | Boolean | No | true | Leave out empty items. |
| Last separator | String | No | Put before the last item instead, e.g. " and ". | |
| Prefix | String | No | Text before the result. | |
| Suffix | String | No | Text after the result. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | The joined text. |