> For the complete documentation index, see [llms.txt](https://help.pickzen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickzen.com/guides/nocode/functions/split.md).

# SPLIT

### Syntax

**SPLIT(items, table)**

| Argument name                                | Description                                    |
| -------------------------------------------- | ---------------------------------------------- |
| <p><strong>items</strong></p><p>Required</p> | List of items.                                 |
| <p><strong>table</strong></p><p>Required</p> | Table with a direct association between items. |

**Table syntax**

| Column name                                  | Description                      |
| -------------------------------------------- | -------------------------------- |
| <p><strong>item</strong></p><p>Required</p>  | Item identifier.                 |
| <p><strong>group</strong></p><p>Required</p> | Group where the item belongs to. |

### Examples

If:

* *items* = \[*id1*, *id2*, *id3*, *id4*, *id5*]

And the table is:

![table](/files/-MA6a-Y1QeEiYhpf7BNB)

**SPLIT(items, table)** returns:

```
group1: [id1, id3]
group2: [id4, id5]
group3: [id2]
```
