---
title: PUSH
url: https://www.tines.com/docs/formulas/functions/push/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/docs/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# PUSH

*[View on tines.com](https://www.tines.com/docs/formulas/functions/push/)*

Adds one or more items to the end of an array.

**Categories:** Arrays

## Syntax

```
PUSH(array, item1, ...)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "array": [
      "red",
      "green"
    ]
  }
}
```

Formula:

```
PUSH(my_action.array, "blue")
```

Output:

```json
[
  "red",
  "green",
  "blue"
]
```

### Example 2: Takes one or more items as arguments.

Formula:

```
PUSH([1, 2, 3], 4, 5, 6)
```

Output:

```json
[
  1,
  2,
  3,
  4,
  5,
  6
]
```

### Example 3: Will add any item to the array, even another array. If you want to join two arrays together see CONCAT.

Formula:

```
PUSH([1, 2, 3], [4, 5, 6])
```

Output:

```json
[
  1,
  2,
  3,
  [
    4,
    5,
    6
  ]
]
```
