Syntax
Try(command, on_error)
Parameters
| Parameter | Type | Details |
|---|---|---|
command | any value | required |
on_error | any value | required |
Returns
any value
Example
Try(SetField("ratio", $paid / $amount), SetField("ratio", 0))TryIf the command fails, runs the second one; "error" then holds {code, message, line}.