Skip to main content
Functions

Separate text

Separate text

Splits a text into parts based on a defined separator, returning a list with all the resulting fragments. Ideal for processing structured data such as CSV, comma-separated lists, file paths or any value that contains a regular delimiter.


Options

Report a text

Enter the text that will be split. It can be a fixed value, the return of a previous action or a variable.

Enter the separator character

Enter the character or text excerpt that works as the split point. Everything between two consecutive separators is treated as a separate fragment.

Returns

Custom code

js
actions["action-id"].values // list with all the resulting fragments (List)
actions["action-id"].size // number of fragments in the list (Number)

Field selection

  • values — list with the fragments of the text split (List)
  • size — number of fragments generated (Number)

Rules and Conditions

  • The Text and Separator fields are required.
  • If the separator is not found in the text, the list returned contains a single item: the whole text.
  • Empty fragments between consecutive separators are included in the list.