[12]Switch

Last modified by Tuan Nguyen on 2023/09/25 16:28

System.Activities.Statements.Switch

Description

Enables you to choose one choice out of many others based on a specific expression.
For example, you want to compare 2 int32 variables A and B and there are 3 possible outcomes which is A > B, B > A or A=B, there for, you can use switch to setup a possible course of action for each of these outcome.
Usually it’s an integer condition, but you can change it from the properties panel.

Core_Switch

(* for Mandatory)

In the body of activity

  • Expression* - The specific condition you want to choose for the execution.
  • Default - You can add different cases or different course of action here.

Properties

Misc

  • Display Name (String) - The name of this activity. You can edit the name of the activity to organize and structure your code better.
    E.g: [406493348] Switch
  • Public (Checkbox) - If you check it, the data of this activity will be shown in the log. Be careful, consider data security before using it.
  • Expression* - The specific condition you want to choose for the execution.
  • Type Argument (Dropdown List) - Enables you to choose different types of statement that can be add in the expression property.
  
Navigation