Dedicated "END IF" or "FI" node to merge TRUE and FALSE branches of IF node

The idea is to add an “END IF” or “FI” node that would combine both the TRUE and FALSE branches and allow continued execution of the workflow.

As discussed here, there is a way to do it using Merge nodes, but it seems to involve adding extra IFs to get the Merge node to enhance the data. That seems like quite a hacky to me.

Alternately, I’ve also had success with using sub-workflows for every condition - but it makes it harder to test and debug.

I would be very willing to work on this. I’m an experienced dev, though I have never worked on n8n nodes before.

Hello @ColinMacLeod I am facing the same issue as you in IF Node → Merge Node: No Merge Data Found - #31 by MutedJam

However, I think the best solution would to use the “Merge” node as follow:

  • Mode: Choose branch
  • Number of inputs: 2
  • Output Type: Wait for the first data to Arrive" <= Needs to be added

I found an Alternative:

  • Use the “Edit fields” node
  • Select the “Include Other Input Fields” field
  • Link multiple inputs

It will act like a FI