# Split Data

Input variable: Text/String hoặc List.

Delimiter: Ký tự phân tách (ví dụ: ,, |, ;, space, etc.).

Extract Mode:&#x20;

* All Value: Lấy tất cả giá trị sau khi tách.
* Random Value: Chọn ngẫu nhiên một giá trị từ kết quả.
* Nth Value: Lấy giá trị theo thứ tự (nhập thứ tự bên dưới).

Trim Whitespaces: Loại bỏ khoảng trắng thừa ở đầu và cuối các giá trị sau khi tách

Output variable: Gắn kết quả vào biến

<figure><img src="/files/N4Em5dAW8fDnSdIdnngw" alt=""><figcaption></figcaption></figure>

VD:&#x20;

Tách chuỗi giá trị 1234,456

Ngăn cách bởi dấu ","

<figure><img src="/files/jVu1XdzRwqXB9e0k3ODm" alt=""><figcaption></figcaption></figure>

Kết quả trả về&#x20;

<figure><img src="/files/17un7hOYlWzlvY3FLSoB" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://minhtien192057s-organization.gitbook.io/gemlogin-book/khoi/data/split-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
