Skip to main content

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​

InputTypeRequiredDefaultWhat it is
ItemsListYesThe texts, as a List variable or ["a", "b"]; numbers and dates are written as text.
SeparatorStringNo, Put between items; a line break is \n.
Skip emptyBooleanNotrueLeave out empty items.
Last separatorStringNoPut before the last item instead, e.g. " and ".
PrefixStringNoText before the result.
SuffixStringNoText after the result.

Outputs​

OutputTypeWhat it is
resultStringThe joined text.