IF node keep screwing up?

Describe the problem/error/question

If statement returns false when it should be true? Re-creating the statement gives same result

Information on your n8n setup

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

hello,

how can i fix this? it keeps doing it even if i re-create the if statement:


Thank you

Hey @xewonder,

Can you share a workflow that reproduces this? I have just given it a go with a quick test and it appears to be working as expected.

The workflow I created can be found below.

Something I would maybe do is try changing your expression to use the newer {{ $('Get Trigger Details').item.json.geofence_id }} syntax which would work better if you are using multiple items.

Hi @Jon

I tried as expression or as fixed value. Keeps going to false!

{{ parseInt($node[‘Get Trigger Details’].json[‘geofence_id’]) }}
use parseint() , which will force the value into numeric format

Hi @lightcom ,

If you check the screenshot in my first post, you will notice that i was already using phraseint().

I will dig a bit further.

Yeah checked, that’s strange

Are you able to provide the workflow and data that reproduces this? I was not able to reproduce it so I would need more information to work it out.