Stop if MySQL returns empty

Is there a way to stop a MySQL action if it returns NULL? I don’t want it to continue to the next step.

Information on your n8n setup

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

Hi @rainmanjam, you could use an IF node after your MySQL node. Check if the result is as expected and if so continue, otherwise stop (you could even throw an error if you like using the respective node).

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