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

# JOIN

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

Combines the elements in an array into a single text value using the argument as a separator.

**Categories:** Arrays

## Syntax

```
JOIN(array, join_text)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": [
      "north",
      "south",
      "east",
      "west"
    ]
  }
}
```

Formula:

```
JOIN(my_action.message, " and ")
```

Output:

```json
"north and south and east and west"
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "flat_array": [
            "apple",
            "pear",
            "orange",
            "grapes"
          ]
        }
      },
      "position": {
        "x": -1020,
        "y": -6465
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "JOIN",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "join": "=JOIN(my_action.flat_array, ', ')"
        }
      },
      "position": {
        "x": -1020,
        "y": -6330
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
