1. Docs
  2. Formulas
  3. Functions

IF_ERROR

If expression produces an error, the result of fallback_expression is returned. If there is no error, the result of expression is returned.

Categories: Logic

Syntax

IF_ERROR(expression, fallback_expression)

Examples

Example 1

Input

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

Formula

IF_ERROR(my_action.value, "error!")

Output

5

Example 2

Input

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

Formula

IF_ERROR(my_action.value / 0, "error!")

Output

"error!"
Was this helpful?