Conditional Actions
If this, then that
Last updated
Was this helpful?
If this, then that
Last updated
Was this helpful?
Conditional actions are a meta action type which check a and dispatch one action if it's true, and another if it's false.
The following fields are available in the action configuration:
condition
[string, required]: the to check. Example (device_battery_state == 'charging' || device_battery_state == 'full')
.
passedActionName
[string, required]: the name of the action to fire if the condition is true.
failedActionName
[string, optional]: the name of the action to fire if the condition is false.