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

# TYPE

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

Outputs the type (class) of the specified value, and supports the following data types:

| Result | Data Type          | Description                 | Example                             |
| :------------ | :----------------- | :-------------------------- | :---------------------------------- |
| `String`      | String             | Text values                 | `"Hello World"`                     |
| `Integer`     | Integer            | Whole numbers               | `42`                                |
| `Float`       | Float              | Decimal numbers             | `3.14`                              |
| `Array`       | Array              | Ordered collection of items | `[1, 2, 3]`                         |
| `Hash`        | Object             | Key-value pairs             | `{"name": "John", "age": 30}`       |
| `TrueClass`   | Boolean (true)     | Boolean true value          | `true`                              |
| `FalseClass`  | Boolean (false)    | Boolean false value         | `false`                             |
| `NilClass`    | Null               | Absence of a value          | `null`                              |

**Categories:** Other

## Syntax

```
TYPE(value)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "hello"
  }
}
```

Formula:

```
TYPE(my_action.message)
```

Output:

```json
"\"String\""
```

### Example 2

Input:

```json
{
  "my_action": {
    "message": 1
  }
}
```

Formula:

```
TYPE(my_action.message)
```

Output:

```json
"\"Integer\""
```

## Sample actions

```json
{
  "standardLibVersion": "14",
  "actionRuntimeVersion": "3",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "hello"
        }
      },
      "position": {
        "x": 2760,
        "y": 5400
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "TYPE",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "type": "=TYPE(my_action.message)"
        }
      },
      "position": {
        "x": 2805,
        "y": 5505
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": 1
        }
      },
      "position": {
        "x": 2910,
        "y": 5400
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    },
    {
      "sourceIdentifier": 2,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
