Skip to main content
Corvus Connection

Switch

Conditional
flow.switchBranches to a case based on an integer or text value, or to default; flow resumes at 'completed'. Case labels come from the 'cases' list; 'valueType' selects int vs. string matching.An integer or string switch with up to four cases, a default, and a 'completed' continuation.

Inputs

Name
Kind
Type
Flags
inExecexecmultiplexed
valueDataanyNone

Outputs

Name
Kind
Type
Flags
case0ExecexecNone
case1ExecexecNone
case2ExecexecNone
case3ExecexecNone
defaultExecexecNone
completedExecexecNone

Parameters

Name
Type
Required
Default
Choices
casesSystem.Stringno"0,1,2,3"None
valueTypeSystem.Stringno"System.Int32"None

Lowers to C#

switch (value) { case L: … break; default: … break; } /* → completed */

Used in