Switch

Create conditional logic to control the flow of actions based on specific criteria. Switches enable your automation to choose different paths based on specific conditions.

For example, "if your input equals a certain value, do action X; otherwise, do action Y." This makes your flows flexible and able to handle different situations automatically.

You can add a number of cases and conditions as per your choice for the switch statement.

Use Case: Add Conditional Logic to Control Flow Paths

Use the Switch component to introduce decision-making within your flow. It evaluates defined conditions and routes execution through different paths based on the criteria you set. This enables your automation to adapt dynamically to different data states or outcomes.

Case1: status = Str "shipped" → Action = NotifyCustomer  
Case2: status = Str "pending" → Action = SendReminder

How does it help?

  • Introduce branching logic to handle multiple scenarios

  • Automatically trigger different actions based on conditions

  • Simplify complex decision-making within a single flow

Last updated

Was this helpful?