I have two Zaps that have the same trigger to start but then after another test do two different functions. How do I create an IF then Else fucntion so I could include both possible operations in one Zap?
How can I create an If then Else function?
Best answer by SamBBest answer by SamB
Mod Edit: 03-03-2023
Just wanted to jump in here to go over some of the different options available! :)
Paths by Zapier
The best way to easily add If/Else logic to your Zaps is by using Paths by Zapier. It would allow you to run different actions in a single Zap based on whether whether a condition is met or not - Add branching logic to Zaps with paths
This guide talks about how to use Paths or a Formatter (Utilities > Lookup Table) to add different tags to leads based on certain values which may also be helpful to review:
Filter by Zapier
As Paths does require a Professional (or higher) Zapier plan, Filters may be a better option. Using two different Zaps each using a Filter by Zapier step, as Danvers suggested, would be a good alternative to Paths - Add conditions to Zaps with filters
With both Filters and Paths, it’s possible to set up multiple Filter rules with AND or OR logic. So AND logic could be used to only allow the Zap to continue if both Apples and Oranges were mentioned. And OR logic could be used to allow the Zap to continue if either Apples or Oranges were mentioned - What's the difference between AND and OR logic in filters and paths?
Spreadsheet-Style Formulas
Depending on the specific use case, another possibility would be to use a Formatter (Spreadsheet-Style Formula) to create an If statement. We have some handy articles that talk about how to use spreadsheet style formulas here:
Code by Zapier
Similarly, a Code by Zapier step can also be used to run an If statement. Examples of how to use If statements in Code steps can be found here:
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.