IF Node outputs True for [(False) AND (True)]

Describe the problem/error/question

See image

I have an IF node that’s ANDing 2 boolean values. One is False, the other is True.
I’m expecting the output of the node should be False but it’s True.
If you look at the True/False indicators to the right of each condition, you can see that the IF node thinks the 1st one is False (which is correct) and the 2nd one is True (also correct).

So why is the output considered True?

The IF node in question is in the sub-workflow (Daily) although it shouldn’t matter.

I’m pretty burned out right now so I’m probably missing something that will embarrass me but I am stumped.
Thank you for taking a look.

What is the error message (if any)?

No error message

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

See the image.

Information on your n8n setup

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

An update.

I changed the test for the 1st condition from “Is before or equal to” to “Is after or equal to”.
The IF node then found both conditions true. However, the output went to the False branch.
So:
(false AND true) → True branch
(true AND true) → False branch
:thinking:

Please check the time zone settings in the workflow. This could explain these phenomena.

I usually find it easier and clearer to work with time differences rather than timestamps.

Here’s an example of how to use the Date & Time node to get the age in hours.

Or, how to implement the IF statement using age.

Another Update:
I discovered what was causing the problem.

I had another tab in my browser that was open to the IF node I was having the problem with. Once I closed that tab (without saving) the Daily IF node was evaluating correctly. In all fairness, I had around 20 tabs open so it was pretty easy to miss. Still, I knew this would be embarrassing but I’m so glad I discovered the issue.

:flushed:

1 Like

Thank you for responding, I’ll incorporate your tips. :hugs:
I found the problem and it’s working correctly now. I added the solution to the post.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.