Hi guys, I’m having an issue with the IF node in n8n. I’m trying to filter items based on a condition, but it doesn’t seem to work as expected some items that should pass are getting filtered out, and vice versa.
My workflow is something like this
HTTP Request → IF → Continue processing
The data coming in looks like this:
[
{ “id”: 1, “status”: “active” },
{ “id”: 2, “status”: “inactive” },
{ “id”: 3, “status”: “active” }
]
But the output is inconsistent:
• Sometimes it only passes one item instead of all “active” ones
• Sometimes it sends items to the wrong branch
I also tried using an expression like this:{{$json.status === “active”}}
but I’m still seeing unexpected behavior.
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: