Switch
Selects one choice from a number of activities to execute, based on the value of a given expression of the type specified in this object's type specifier.
#
Designer Properties- Expression The expression to compute the object for case branches comparison.
- Default The default branch to be executed if the expression result doesn't match any of the cases.
- Case The case branch with the value to be matched against the expression result. A branch is executed when the case value is matching the expression result.
- Add new Case Allows us to add a new case.
#
ExampleIn this example, we open Google, type "test" followed by enter key, and then we refresh the result google page.