How to converge two branches when only one branch runs?

Hi everyone,

I have a workflow where execution splits using an IF / Switch node, and only one branch will ever run (the other branch does not execute at all).

I want to continue the workflow with whichever branch actually runs, but I’m running into issues with the Merge node:

  • Merge waits for all inputs

  • Since one branch never runs, Merge blocks forever

  • Append / Combine don’t help because the missing branch never executes

Example:

  • IF / Switch

    • Branch A → produces items

    • Branch B → does not run

  • Goal: continue with Branch A’s output (or Branch B if that’s the one that runs)

What is the recommended n8n pattern to converge these branches so the workflow continues with whichever branch ran?

I think i can help you with this one but it would be easier if you could share your workflow. sounds like you need a merge node. If possible please copy the workflow JSON and paste it here. :slight_smile:

Hi @ohada143,

You need to use the merge node with combine by position like this: