Skip to main content
About the Resource Center

Switch action

A switch action branches on condition after evaluating one or more expression cases. This action is similar to a Decision action, and is easy to set up when multiple cases must be evaluated. Configure a switch action to specify what has to be done by Architect, when, and under which circumstances.

NameDescription
Name Type a descriptive name for the Switch action.

Evaluation Style

Choose one of the following:

  • Take path of first case that returns True. The first time that a condition returns a value of True, Architect follows that path and does not move to any further cases.
  • Take path of first case that matches the below expressionThe first time that a condition equals a specified expression, Architect follows that path and does not move to any further cases.

Expression

If you choose Take path of first case that matches the below expression, enter the desired expression here.

Cases (Boolean)

Define the Boolean expression in the Case configuration boxes. By default, these boxes are in literal mode. Switch between literal and expression modes to enter more detailed expressions, or to access the large expression editor and Operator and Function help.

You can also:

  • Click to remove a case.
  • Click to collapse a case.
  • Click to expand a case.
  • Click and hold the Case card that you want to move up or down in the list of cases. To move a card when it is expanded, click and hold the header of the card.

Add Case

Click next to Cases (Boolean) to add additional cases. The minimum number of allowable cases is 1 (in addition to the default), and the maximum number of allowable cases is 64.

Default Case

This is the default path that the flow will take if the added cases do not apply.
Note: After you define the evaluation style and switch cases in the Switch action’s design area, make sure you add the desired actions below each case in the task editor.