core / condition / schema v1
Switch
Route workflow through one of several cases
Prerequisites
No connection prerequisite is declared for this node.
Parameters
| Parameter | Type | Description |
|---|---|---|
Match bymode | select Optional Default: | Expression mode: each case is a condition (e.g. {{amount}} > 100); the first true one wins. Options: Value equals case (value), Case is a yes/no formula (recommended) (expression) |
Value to testvalue | text Required Default: | |
Casescases | switch_cases Conditionally required | Add as many as you need. Each gets its own output. The first matching case wins.Field conditions{
"required": {
"key": "mode",
"values": [
"expression"
]
}
} |
Inputs and outputs
Inputs
execute- Execute (input)
Outputs
default- Default (output)
Output data schema
[
{
"key": "value",
"type": "any",
"label": "Tested Value",
"description": "The resolved value the cases were compared against"
},
{
"key": "branch",
"type": "string",
"label": "Branch",
"description": "Which case handle fired (or \"default\")"
}
]Examples and troubleshooting have not yet been reviewed for this contract.
Version and compatibility
This reference follows the current authoring contract. Existing workflows retain their saved node revisions.
Contract identifier
af9704c61e8d7f93546496bdce6b38892dbe0a946e8db71b17eca968fef02585