Value get set even if condition falses

Describe the problem/error/question

Hi Team,
I have observed a behaviour where the set node set the value even if the previous If condition false.

My use case is to set the value of set2 and set3 only if the If node condition false but it execute in true too.

Reference: set values

Could you please help.

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Set value only on If condition false.

Information on your n8n setup

  • n8n version: 0.234.1
  • Database (default: SQLite): postgresql
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: MAC

Hi @Gouravdev

The way you have it set up right now, If Set/Set1 Is not empty will return true, since there are indeed values in these nodes. If you edit this value to Is empty then the outcome will be false and the wf will run through the set2 and set3 nodes.

Is this what you meant?

1 Like