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

Syntax 

TYPE(value)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"message": "hello"
4
}
5
}

Formula

TYPE(my_action.message)

Output

"\"String\""

Example 2

Input

1
{
2
"my_action": {
3
"message": 1
4
}
5
}

Formula

TYPE(my_action.message)

Output

"\"Integer\""

Sample Actions 

Transform
My Action
Transform
TYPE
Transform
My Action

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?