Skip to main content
Best answer

If/Then Statement within a Zap field.


Is it possible to do an if then statement inline, within a zaps fields? Instead of having to use the zapier paths filter before the zap? 

This would help me in not duplicating steps when only 1 field in that step is different.

Best answer by Do Anh TranBest answer by Do Anh Tran

Jpeterson123 wrote:

Is it possible to do an if then statement inline, within a zaps fields? Instead of having to use the zapier paths filter before the zap? 

This would help me in not duplicating steps when only 1 field in that step is different.

Zapier doesn’t support the in line IF statement so it impossible to do that. However you you can use the “Code by Zapier” to write the IF conditions there to recude amount of steps.

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

GetUWired
Forum|alt.badge.img+12
  • Zapier Expert
  • 1030 replies
  • July 19, 2022

@Jpeterson123 
It depends on what you are trying to do.. 

If only one of two fields you want to run logic on exists at a given time then you can just map both fields to the input. 

Can you describe the use case a bit further?


Troy Tessalone
Forum|alt.badge.img+14

Hi @Jpeterson123 

Good question.

Zap Config Options:

  1. Separate Zaps with Filters
    1. Duplicate then edits
  2. 1 Zap with Paths
  3. 1 Zap with Formatter step(s)
  4. 1 Zap with Code step to handle IF statements
  5. 1:Many Zaps chained together with Webhooks

jesse
Forum|alt.badge.img+9
  • Architect
  • 1348 replies
  • July 21, 2022

Hey @Jpeterson123! A great, non-technical way to do an if/then calculation within your Zap is by using a Formatter “Spreadsheet-style Formula” utility. You can read more about how to set that up, here: https://zapier.com/help/create/format/use-spreadsheet-style-formula-functions-in-zaps


Forum|alt.badge.img
  • New
  • 9 replies
  • Answer
  • July 27, 2022
Jpeterson123 wrote:

Is it possible to do an if then statement inline, within a zaps fields? Instead of having to use the zapier paths filter before the zap? 

This would help me in not duplicating steps when only 1 field in that step is different.

Zapier doesn’t support the in line IF statement so it impossible to do that. However you you can use the “Code by Zapier” to write the IF conditions there to recude amount of steps.