ABS

Returns the absolute value of a number.

Syntax 

ABS(number)

Usage examples 

Example 1

Input

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

Formula

ABS(my_action.message)

Output

17

Example 2

Input

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

Formula

ABS(my_action.message)

Output

4

Example 3

ABS will also work on text that only contains a number.

Input

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

Formula

ABS(my_action.message)

Output

19.86

Sample Actions 

Transform
My Action
Transform
ABS

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?