The Case action is used in conjunction with the Select action. You use the Select action to set up an expression that can be evaluated to any of several results. You then set up a Case action for each possible result.
The Select/Case block begins with the Select step containing the expression. This is followed by several Case blocks. Each Case block starts with a Case step that specifies a possible result of the expression. If the result of the expression matches the case, then the steps following the Case step are executed up to the End Case step. You create one Case block for each possible result of the expression.
When you create a Case step, an End Case step is created automatically. Place the steps to be executed between the Case step and the End Case step.
The optional final Case block is the default case, which contains the steps to be executed if the expression result does not match any of the cases. The default Case Step and End Case step are created automatically when the Select step is created. Place the steps to be executed between the default Case and the End Case steps.
The steps between each Case step and End Case step should be indented for visual clarity.
From the Task Builder Available Actions pane, open the Flow folder and double-click the Case action or drag it into the Steps pane.
Enter the value for the expression result.
If you are entering the default case step, select Default case.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
In the Task Builder Steps pane, hold down SHIFT and click the first and last steps in the block so that the complete block of steps is selected.
Click the Format button .
Create a Choice step where a user can enter input, and the input populates a variable. Then create a Select step that specifies the user input variable as the expression. Then set up a series of Case blocks where each Case step contains a possible user answer and is followed by steps appropriate to that answer.
Create a variable named "choice".
Display a message box containing checkboxes for the items: "one,two,three,four" (corresponding values: "1,2,3,A"). Display the text "please select one of the following". The title of the message box is "please select one of the following". The user can select ok without choosing any item.
Select a following case based on the result of expression: %choice%
Display the message "You have selected one" in a message box.
Display the message "you selected two" in a message box.
Display the message "you selected three" in a message box.
Display the message "You selected four" in a message box.
Display the message "you didn't make a selection" in a message box.
End Select block
Adding Task Steps
Select Action-Setting Properties
End Case Action-Properties