Skip to main content

Switch Blocks

Switch blocks allow you to run different steps based on a value piped in.

image-20201218135128628

Below is an annotated example:

image-20201218135128628
  1. Flow key: the value piped into this handle when the workflow is run defined which branch to run
  2. Edit branch selector: this shows which branch you are viewing & editing. In this example, we are viewing the branch branch-1, which will be run only if the value piped into Flow key equals branch-1
  3. The steps inside the Switch block are the flow for the branch displayed in the Edit branch selector. So here - the Math Operation step will run if Flow key equals branch-1
  4. All data flowing in & out of the Switch block must pass through