Switch
Compare one value with each case in turn and run the steps of the first case that matches; Default runs when none does.
Command in the Core toolkit · id core/switch · 3 inputs, no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Value | Any | No | Value to compare with each case's values: text, a number, a $reference or an expression. | |
| Match | String | No | equals | How a case value matches: equals (like ==, so 5 and "5" match), contains, starts_with, ends_with, regex (the case value is a pattern), or expression (each case value is a condition and the value is not used). |
| Ignore case | Boolean | No | false | Compare text without upper/lower case. |