> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-es/reglas-edicion-masiva-y-enriquecimiento/como-utilizar-acciones-entonces-en-las-reglas/accion-de-regla-dividi-testo-in-un-elenco.md).

# Acción de regla: dividi testo in un elenco

Se usa para: crear una lista a partir de un campo que contiene múltiples valores (separados por un carácter concreto).

Se usa en: sentencias "THEN" y sentencias "ELSE".

Necesitas una lista en un campo si quieres usar reglas que operen sobre listas (por ejemplo: dividir lista, dividir productos, ordenar lista). La regla "Split text to list" puede crear esta lista por ti.

Para crear una lista en un campo, ese campo debe contener múltiples valores separados por un carácter específico. Ejemplos de valores de campo de este tipo:

* XXS, XS, S, M, L, XL, XXL
* 32; 33; 34; 35; 36
* 8719322525833|8719322525468|8719322521125|8719322527776|871932252390

Con la regla "Split text to list" eliges en qué carácter dividir (por ejemplo: coma, punto y coma o barra). La regla crea un elemento de lista por cada valor separado. Por ejemplo, las capturas de pantalla siguientes muestran cómo dividir un campo que contiene tallas (separadas por comas) en una lista.

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/vU1KOYdH0OLSeDmCmSm6/split_text_to_list.PNG" alt=""><figcaption></figcaption></figure>

Así era el campo "size" antes de aplicar esta regla:

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/QUomu9oksxIeLX5EFfAd/size_after.PNG" alt=""><figcaption></figcaption></figure>

Y así es ese mismo campo después de aplicar la regla:

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/NZ0qwJoTN0KBGc8FQLgf/size_before.PNG" alt=""><figcaption></figcaption></figure>

Después de esto podrías, por ejemplo, usar la regla Split products para crear un producto por cada talla en la lista.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-es/reglas-edicion-masiva-y-enriquecimiento/como-utilizar-acciones-entonces-en-las-reglas/accion-de-regla-dividi-testo-in-un-elenco.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
