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.

Switch designer

Designer Properties#

  1. Expression The expression to compute the object for case branches comparison.
  2. Default The default branch to be executed if the expression result doesn't match any of the cases.
  3. 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.
  4. Add new Case Allows us to add a new case.



In this example, we open Google, type "test" followed by enter key, and then we refresh the result google page.