Switch
Written by
Updated at June 11, 2025
Selecting the further execution path. Only one path can be selected: the one for which the condition first returns true. If all conditions have returned false, and no value is set in the default field, the execution will be terminated with an error.
| Field name | Type | Required | Default value | Templating is supported | Description |
|---|---|---|---|---|---|
input |
string |
No | Overall state of the workflow | Yes | A jq template to filter the workflow state fed into the step. |
choices |
Choice[] | Yes | No | No | List of possible further execution paths. |
default |
string |
No | No | No | ID of the step to execute if none of the conditions specified in choices return true. |
Choice object
| Field name | Type | Required | Description |
|---|---|---|---|
condition |
string |
Yes | Condition in the form of a jq template that returns either the true or false string. |
next |
string |
Yes | ID of the step to execute if the condition returns true. |