Flow Control

Switch <Int32>

This activity enables to select one choice out of multiple based on the value of the specified expression. The Switch <Int32> activity uses the integer expression. Labels are literals (no “ or ‘ characters). If there is no match, default options executed.

This activity is meant to be used mainly in Sequence activity.

switch_int

 

 

Let’s say that Wizlink® helps you memorizing the multiplication table. There is only one correct answer to a question “9x6=?”. So only one case (54) returns comment “right”, all other answers (cases) return the default comment “wrong”.

Parameter nameParameter TypeIn/OutDescription
DisplayNameLiteralInputyou can change the name of activity for greater clarity of the scenario
ExpressionInt32InputInt32 variable or expression
KeyInt32Inputcase value (Int32)