Search K
Appearance
Appearance
Compares an input value against a list of predefined values and routes the workflow to the matching branch.
Use the Switch task when a workflow needs to branch into more than two paths based on the value of a variable. Define the possible values as switch cases, and the workflow will follow the connector whose label matches the input. If no case matches, execution follows the default branch. This is the right choice when an If Statement would require an impractical chain of nested conditions.
| Field | Type | Required | Description |
|---|---|---|---|
| Switch Input | Text | Yes | The value to compare against the switch cases. Typically a variable reference from a previous task. |
| Switch Values | List | No | The list of values to match against. Each entry creates a corresponding output connector on the node. |
This task performs routing and does not produce data output variables. Each value in the Switch Values list becomes a named output connector. If no value matches the input, the workflow follows a connector labelled default.
Direct the workflow into one of three branches based on a calculated value.
| Field | Value |
|---|---|
| Switch Input | MathOperations1.Result |
| Switch Values | 1 |
| Switch Values | 2 |
| Switch Values | 3 |
If the result is 2, the workflow follows the 2 connector. Any other value follows default.