# List to string

## Description

This operation converts a list of comma-separated values (data type `listString`)  into a string of values divided by a specific separator.

***

## Data types

These are the input/output expected data types for this operation:

### Input data

<img src="https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FktbyAPZKOJf63pDbImwp%2F2025-02-27_12-44-15.png?alt=media&#x26;token=277502c9-554a-4254-8bba-7287c820eb0c" alt="" data-size="line"> - List of comma-separated values.

### Output data

<img src="https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FEAiKqmMTtuQqEcB1ARyA%2Fimage.png?alt=media&#x26;token=4af58dc3-64ff-4780-aaff-8e73704304ac" alt="" data-size="line"> - Resulting string of values divided by the given separator.

***

## Parameters

These are the parameters you need to configure to use this operation (mandatory parameters are marked with a <mark style="color:red;">**\***</mark>):

<details>

<summary>Separator<mark style="color:red;"><strong>*</strong></mark></summary>

Enter the character(s) you want to use to divide the values in the input string lists.

</details>

***

## Example

Suppose you want to convert a series of lists of comma-separated values into a single string representing those values separated by `/`:

1. In your Pipeline, open the required [Action](https://onum.gitbook.io/onum-docs/the-workspace/pipelines/actions) configuration and select the input **Field**.
2. In the **Operation** field, choose **List to string**.
3. Set **Separator** to `/`.
4. Give your **Output field** a name and click **Save**. The values in your input field will be transformed into a string with its values separated by the given character. For example:

<pre><code><strong>hello,my,world -> hello/my/world
</strong></code></pre>

{% hint style="info" %}
You can try out operations with specific values using the **Input** field above the operation. You can enter the value in the example above and check the result in the **Output** field.
{% endhint %}
