---
title: CONCAT
url: https://www.tines.com/docs/formulas/functions/concat/
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)*

# CONCAT

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

Concatenates (joins together) two or more arrays.

**Categories:** Arrays

## Syntax

```
CONCAT(array1, array2, ...)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": [
      "one",
      "two",
      "three"
    ]
  }
}
```

Formula:

```
CONCAT(my_action.message, ARRAY("four", "five"))
```

Output:

```json
[
  "one",
  "two",
  "three",
  "four",
  "five"
]
```

### Example 2: Takes two or more arrays as arguments.

Formula:

```
CONCAT(ARRAY(1, 2), ARRAY(3, 4), ARRAY(5, 6))
```

Output:

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

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "CONCAT",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "concat": "=CONCAT(my_action.arr1, my_action.arr2)",
          "add_string": "=CONCAT(my_action.arr1, ARRAY(my_action.string1))"
        }
      },
      "position": {
        "x": -300,
        "y": -6180
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "arr1": [
            "a",
            "b"
          ],
          "arr2": [
            "c",
            "d"
          ],
          "string1": "e"
        }
      },
      "position": {
        "x": -300,
        "y": -6285
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 1,
      "receiverIdentifier": 0
    }
  ],
  "diagramNotes": []
}
```
