Switch
Add conditional branching logic to your Fastn flows. Use the Switch component to route automation paths based on specific data conditions.
Last updated
Was this helpful?
Add conditional branching logic to your Fastn flows. Use the Switch component to route automation paths based on specific data conditions.
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 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.
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?
Was this helpful?
Case1: status = Str "shipped" → Action = NotifyCustomer
Case2: status = Str "pending" → Action = SendReminder
