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

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

# PREPEND

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

Adds the specified text to the beginning of the other text.

**Categories:** Text

## Syntax

```
PREPEND(text, prefix)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "red, green, and blue"
  }
}
```

Formula:

```
PREPEND(my_action.message, "Primary colors: ")
```

Output:

```json
"Primary colors: red, green, and blue"
```

## Sample actions

```json
{
  "standardLibVersion": "14",
  "actionRuntimeVersion": "3",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "red, green, and blue"
        }
      },
      "position": {
        "x": 2865,
        "y": 3840
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "PREPEND",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "prepend": "=PREPEND(my_action.message, \"Primary colors: \")"
        }
      },
      "position": {
        "x": 2865,
        "y": 3945
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
