Router with always true conditions

Status: Open · Asked by Franzo on · 0 views

Franzo — Question ·

If I make a router with 5 branches, all with an always true condition, will all 5 branches be executed? How It works?

Thank you!

Fagun Shah — Reply ·

Yes, all 5 branches will be executed.

Franzo — Reply ·

Be careful! Google's AI insists that if there are two or more true branches, pabbly only runs only the first one, and in any case, only one branch of the router, ignoring the others. This can be confusing for the less experienced and newbies.

Fagun Shah — Reply ·

Don't trust AI in this things. ?

Franzo — Reply ·

If I want to set a task that runs once all the branches have been executed, where should I put it? As the last task of the last branch?

How do I tell pabbly to run a task only if all branches have been executed without errors?

Preeti Paryani — Reply ·

Hi @Franzo,

Thanks for explaining your use case so clearly.

There isn’t a direct feature for this, but you can achieve it with a workaround.

What you can do:


Instead of keeping all 4 routes separate, try structuring them in a nested way:

  • Create Route 1 → add its steps
  • Then Route 2 → add its steps
  • Then Route 3 and Route 4 similarly

After this, create a Route 5 where you want your final step to run.

In Route 5:


  • Add filters using the AND operator
  • Map conditions from all 4 routes
  • This way, Route 5 will only run when all previous routes meet the conditions

To make sure no step failed:


  • Identify a field from each step that only appears when it runs successfully (like an ID or response field)
  • Add filters to check those fields exist
  • Do this for all important steps across the 4 routes

Important:


  • Use only AND conditions
  • Add checks for all routes
  • You’ll need to test this properly once set up

This is a workaround, but it should help you get close to the behavior you want. Let me know if you want help setting it up.

Back to all forum threads · Log in to reply