While loop with stop condition

Describe the problem/error/question

What is the error message (if any)?

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

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:

I created a while loop and used an “if node” to exit the loop on some condition. But it turns out the “if node” execute both of its exit branch. Is there a way currently in n8n to conditionnally execute a workflow?

Hi Fel_WU,

Would you be able to share the condition within your if node? For instance, here is the condition on the if node found within the n8n Quick Start Tutorial, as an example. Posting the content of your node will help with debugging!

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