Skip to main content

Switch

This block routes execution to a different output depending on the value of an input.

Use it instead of a chain of IF Condition blocks when one value can take several known values.

Configuration

  • Value: the value to test. A static value, a variable, or a setting can be used.
  • Cases: the list of values to handle. Each case you add becomes its own output port on the block.

Connections

  • <case>: one output per configured case, executed when Value matches that case.
  • Default: executed when Value matches none of the cases.
Note

Only the matching case runs. If you need several conditions to be true at the same time, use the Compound Condition block instead.