Switch
A Switch Case statement allows you to execute one of the predefined case scopes based on the evaluated value of the Condition expression. Each case scope defines a test for the condition value, and the first case where the test is passed, i.e. evaluates to True, gets executed.
To add cases: hover over the SwitchCase statement and click on "+" icon.
To remove cases: right mouse click and select delete, or directly press delete keyboard button.
Properties
Name | Description |
Condition | The switch condition to be evaluated. Usually, a process variable is used. |
CaseCondition | An expression that is compared against the switch condition.
If a string default is used in CaseCondition, the case is chosen when no other conditions return as true. |