Hi n8n community,
I’m having a strange issue with the IF node where the boolean logic seems inverted or inconsistent.
My Setup:
- Node “FAQ detector” outputs:
{"is_faq": true}
(boolean) - IF node condition:
{{$node["FAQ detector"].json["is_faq"]}}
[Boolean] [is true]
Expected Behavior:
- When
is_faq: true
→ should go to TRUE branch - When
is_faq: false
→ should go to FALSE branch
Actual Behavior:
- When
is_faq: true
→ goes to FALSE branch - When
is_faq: false
→ goes to TRUE branch
What I’ve Tried:
- Changing operator from “is true” to “is false”
- Using “is equal to” with boolean type
- Clearing executions and recreating the IF node
- Different reference formats:
{{$node["FAQ detector"].json.is_faq}}
Questions:
- Is there a known issue with boolean evaluation in IF nodes?
- What’s the correct way to check if a boolean field is true/false?
- Could this be related to node version or n8n version?
Any help would be greatly appreciated!
IF node version: 2.2 (Latest)