AVERAGE

Returns the average (mean) numeric value. Can either be called with a single argument which must be an array or multiple numeric arguments.

Syntax 

AVERAGE(array) or AVERAGE(number1, number2, ...)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"message": [
4
1,
5
2
6
]
7
}
8
}

Formula

AVERAGE(my_action.message)

Output

1.5

Example 2

Input

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

Formula

AVERAGE(my_action.message, 2, 3)

Output

2

Sample Actions 

Transform
My Action
Transform
AVERAGE

Select an action to inspect.

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

Transform
My Action
Transform
AVERAGE

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?