Best answer

If/Then Statement within a Zap field.

  • 19 July 2022
  • 4 replies
  • 3050 views

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.

icon

Best answer by Do Anh Tran 27 July 2022, 05:01

View original

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

Userlevel 7
Badge +12

@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?

Userlevel 7
Badge +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
Userlevel 7
Badge +9

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

Userlevel 2
Badge

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.