The expression in the 'If' is returning "true" but passing it in the "false" branch

Describe the problem/error/question

I am comparing the appointment date and time with the current date and time that if it lies between 1 and 1.5 hours then it return true else return false.

I have return and expression in the if node and set the type as boolean “is true”.

The output of the expression is returning true but then also it is passing from the false statement, i am not getting the type error in the expression comparison but then also i am not getting the correct output.

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

False

Information on your n8n setup

  • n8n version: Version 1.118.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

The issue is that boolean requires a boolean field from input items. The input items you provided doesn’t have a boolean field, so the IF statement is routing false on default.

I suggest splitting your expression into two conditions with both being date type as shown in the image:

but the output of expression is boolean

@Arpan_Choudhary your expression output is false indeed

opening expression result in your provided output showing false