Enables you to execute a single course of action out of multiple options, based on a preset condition. The activity consists of a conditional expression and a collection of cases, each containing a corresponding activity or set of activities. The Switch activity executes a single case in the collection, based on its match with the conditional expression. If the condition does not match any of the cases, the Default one is executed.
The Switch activity can be used instead of an If activity if the condition has to be tested against three or more cases.
All the possible sequences out of which a single one is executed based on its match with the provided Expression. You can only have one Default case. If no Default case is added, the project is executed, but the activity does not return any output.
- DisplayName - The display name of the activity.
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
- Expression - The statement according to which one of the cases is executed. By default, the variable type supported by this field is Int32. To change the type, select a different option in the TypeArgument drop-down list.
- TypeArgument - Enables you to select the type of statement that can be added in the Expression property. By default, Int32 is selected.
This activity is built by Microsoft. For more information, see their official documentation.
Updated 3 months ago