Describe the problem/error/question
It seems a bug and IF not working correctly with negative digit (I`ve added separator . to digits for human readable view
I have IF node to compare overdue time in milliseconds
The idea is
When overdue is more than 2 hours send telegram msg “OVERDUE”
When overdue less than 2 hours send “FOLLOW UP” aka reminder
condition AND
fx:{{ DateTime.fromISO($json[“Due Date”]).toMillis() - DateTime.now().toMillis() }}
#Number: is less then
0
Result:-9.463.193 - TRUE
AND
{{ DateTime.fromISO($json[“Due Date”]).toMillis() - DateTime.now().toMillis() }}
with result -9.463.193
#Number: is less then
-7.200.000
Result: -9.490.249 - TRUE
it always throw me to False branch
even when I change second condition to
AND
{{ DateTime.fromISO($json[“Due Date”]).toMillis() - DateTime.now().toMillis() }}
with result --9.463.193
#Number: is LESS then
-7.200.000
it still goes to false branch
Where is my error in logic or it is a bug?
Might be there is more elegant solution to solve it?
What is the error message (if any)?
No error
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version CLOUD:
**Sorry if I am making mistake and this is silly question, I am newbee **
Tried vice versa everything and internal AI help, still cant make IF to work as expected
BTW it could be great to
You should add indicator to conditions to visually see if the result of every condition
1 - true
2 -false
#Feature #Support
Assistant
Currently, n8n’s If node does not display a real-time indicator for each individual condition’s result during execution. You only see the overall branch (true/false) after running the node, not the evaluation of each sub-condition.
How to see condition results now:
- You can use the “Execute Node” feature and inspect the output, but you won’t see which specific condition was true or false—only the final result.
- For debugging, you can temporarily split your conditions into separate If nodes or use a Set node with expressions to output the intermediate values.
> “Add visual indicators in the If node to show the result (true/false) of each individual condition after execution, not just the overall result.”