Describe the problem/error/question
I need to decide the way of the flow depending on a data object that is available or not.
I do this with the IF Node and look for an object called Partner:
As you can see, the object is empty (1) and the IF condition checks if the string is empty (2). The “True Branch” (3) is used with the condition that the object is not empty here!
Now you can say that it is really not empty as there is the Text “Object: {}” visible, but this screenshot comes from a workflow execution with multiple workflows included - lets say the final app logic.
When i execute the same workflow itself with the same testdata, i get this result:
The object is empty (1) and the IF condition checks if the string is empty (2). The “False Branch” (3) is used with the condition that the object is not empty here.
What is correct?
Information on your n8n setup
- n8n version: 0.227.1
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: In WSL2 Ubuntu of Windows 11