> For the complete documentation index, see [llms.txt](https://playbooksdoc.clone-systems.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://playbooksdoc.clone-systems.com/output-types/arrays.md).

# Arrays

![Array outputs are lists of elements](/files/-MI3jLYUTNBRQPVt9jP6)

## Examples

### [Incident Sources](/components/start-playbook/incident.md#sources-array-of-ips)

\[168.26.26.26, 123.15.15.15, 45.55.68.3]

## How to use arrays

### Length of Array

Click on an array variable and choice List -> Length.\
This will return the total number of elements

![Click on an array variable](/files/-MJXl9px7tKy9RekUIC7)

### With simple elements

```
['user1@email.com', 'user2@email.com', 'user3@email.com']
```

### With Objects

```
[
    {
        "id": "vEIhynABwNtBtRIXXfQJ",
        "watch_list_value": "afalegkos",
        "watch_list_field": "username",
        "watch_list_score": 484,
        "watch_list_last_score": 481,
        "user_id": "2",
        "user_name": null,
        "status": true,
        "status_stamp": "2020-03-11T15:05:48.000+00:00",
        "created_at": "2020-03-11T15:05:48.000+00:00",
        "updated_at": "2020-10-13T14:04:41.000+00:00"
    },
    {
        "id": "Pg74r3ABwNtBtRIXTW_W",
        "watch_list_value": "odoo",
        "watch_list_field": "username",
        "watch_list_score": 483,
        "watch_list_last_score": 480,
        "user_id": "1",
        "user_name": null,
        "status": true,
        "status_stamp": "2020-03-06T13:10:50.000+00:00",
        "created_at": "2020-03-06T13:10:50.000+00:00",
        "updated_at": "2020-10-13T14:04:41.000+00:00"
    }
]
```
