Skip to main content

I’m setting up a default value where if Output 0 doesn’t have any value it will replace it with Output 1.

The output come from regex where if match there is data in either Output 0 or 1.

If there is no data in Output 0 and there is data is Output 1 it will replace the value.

The problem when Output 1 doesn’t have value as a default value and the test flow will fail. Will the flow fail? or just it will just use the value from Output 0?

 

Hi @question 

Good question.

Perhaps try using a Code step with IF/Else statements.

 


Hey there @question

I believe if the fallback value (Output 1) didn’t have a value then that would cause it to fail when the Zap runs. Troy’s suggestion of using a Code step to check the two values is very good route to take.

Alternatively, if you’re not super comfortable with code steps you could try using Paths to check whether there are values present for both Output 0 and Output 1. You can find out more about paths here: Add branching logic to Zaps with paths

Keep us posted on how you get on with this! 🙂