Add branching logic to Zaps with paths

Last updated:

Paths let you build advanced workflows to perform different actions based on different conditions. Paths use conditional, if/then logic: if A happens in your trigger app, then do X. If B happens, then do Y, and so on.

With each path, you set up rules and decide which actions should occur when those rules are met. You can add up to three paths and three nested paths (paths within a path) in your Zap. You can only set up paths after adding a trigger to your Zap, and paths must be the final step of your Zap.


Paths are only available on Professional plans and higher. If you’re on a Free or Starter plan, you can get a free 7-day trial of paths by adding a paths step to a Zap in the editor.

1. Add a path to your Zap

  • In the Zap editor, ensure you’ve set up your trigger.
  • Click + to add a step.
  • Search for and select Paths. Two paths, A and B, will automatically be created in a single path group (a group of paths on the same level).

Path A and B will be added after adding a paths step

  • Select Path A. This is your first path.
  • In the Name field, give your first path a name that allows you to identify it.
  • Click Continue.

Renaming a path


Zaps are limited to 100 steps, including all steps within paths.

2. Set your path rule(s)

In the Rules section, set the rule(s) for your path using the three dropdown menus. Each path rule requires three pieces of information:

  1. Field: in the first dropdown menu, select a trigger field to base the rule on.
  2. Rule: in the second dropdown menu, select the rule for the trigger field. Learn more about different rule types.
  3. Value: in the third dropdown menu, enter the specific value the rule must meet.

Path rule

There are two types of logic for multiple path rules:

  • AND logic: to identify trigger data that meets all the path rules, click the + AND button.
  • OR logic: to identify trigger data that meets at least one path rule, click the + OR button.

Learn more about the difference between AND and OR. When you’re done setting up your rules, click Test & Continue.


If the data checked by the Zap matches more than one path, all matching paths will be used.

3. Test your path rule(s)

In the Filter Setup & Testing section, Zapier will test your path rules based on your sample data. A message will inform you if your Zap would or would not have continued down this path based on the sample data.

  • To view the specific sample data that was tested, click the down caret to expand it.

Path rule test

  • Click Continue.

4. Add actions to your path

Next, add actions to your path the same way you would add actions to a regular Zap. You must add at least one action to a path before you can build another path.

When you’re done setting up your action(s), click Set Up Next Path.

5. Add more paths to your Zap

You can add up to five paths in your Zap, and up to three nested paths (paths within a path). To set up your paths, repeat the steps above.

Paths must be the last step in a Zap. If you want the same actions to occur for each path at the end of your Zap, add the actions to each path.


To implement if/else logic, you can set the rules for two paths with opposite conditions. For example, in Path A: if the email address exists, and in Path B: if the email address does not exist.

When you’re done setting up all your paths, turn on your Zap.


Tasks are counted in paths in a similar way to filters. Learn more about how tasks are counted in paths.

Need More Help?

Contact Support

Tell us about your problem, and we’ll find you a solution or you can email support.
Get Help

Hire an Expert

We have a directory of professionals across the globe who are ready to help.
Find a Zapier Expert

Zapier Community

Connect with other Zapier users and industry professionals to get help crafting the perfect workflow.
Check out the community

Zapier University

Video courses designed to help you become a better Zapier user, whether you’re a beginner or more experienced.
View courses