Switch

Runs the case that matches a value.

Behaviour

Built-in workflow activity · type id velophex.switch

Properties#

Input#

Expression#

Expression · Value type · Required · Default: Not specified

The expression whose value selects the case.

Options#

Value type#

ValueType · Type · Required · Default: Int32

The type of the expression and of every case value.

Cases#

Case#

Case:{n} · Value type · Optional · Default: Not specified

The case's match expression, read-only here. Edit the match expression on the designer card.

Default#

Default · Read-only · Optional · Default: Present

Whether the Default block is present. Add or remove the Default block on the designer card.

How it works#

Switch evaluates its expression and runs the case whose value matches. When no case matches, the optional Default block runs. A new Switch has Value type Int32, one case for the value 1 and a Default block.

Properties

Input

Options

Cases

How it works