Combine array of strings
Combine entries in an array of string into one string
“Combine array of strings” allows you to combine entries in an array of string into one string.
On this page, we will introduce the Tool step to “Combine array of strings”.
How to use “Combine array of strings” step
Add the component
Add the “Combine array of strings” step to your Tool (check how to get started with creating a tool).
Array to join
A “Combine array of strings” step requires an array of strings as an input. This array can be entered within the step.
However, it is often more practical to fetch the value from an input component (e.g. List input) or
another step output (e.g. JavaScript snippet producing a list of string).
Use {{variable name}}
to provide the data to the “Combine array of strings” step.
Separator
Even though called separator, this field receives a character to be used as the connector of the items in the string array. For instance, with a ’-’ connector, all the list elements are stacked together with a ’-’ in between.
Follow the links below for more information about
- How to run a step
- How to delete a step
- How to configure output
- How to configure a default value
- How to move a step in a Tool
- How to duplicate a step
- How to add condition to a step (i.e. execute only if a condition is met)
- How to loop a step (i.e. run one step multiple times)
Access the step output
The output is a dictionary with a key text
.
Below you can see samples where the default name assigned to the step combine_array
is used.
Note that a step name is different from the step title. Step titles can be found on the top left
of steps. A step name is shown on the bottom left, in smaller font and highlighted green.
Common errors
Unsupported input
An error similar to the one noted below indicates that the provided input is not a valid array.
Was this page helpful?