If is not working properly when I have empty list

,

Hi team,
I have an issue related with IF, I am getting a list of items from Notion, after that I send this list to IF to check if there are any item, if NOT it should add new items to the list. But, my IF statement NEVER enter on false…

{{ $json.toJsonString()==="{}" }}

type or paste code here

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Solved this deleting my IF node and creating a new one

hello @Alex_Villanova

there is a better syntax for it