Nested loop not stopping

Hello, I’m having a hard time understanding how loops work in n8n.
My nested loop seems to continue even if the condition is true and add a video to the playlist.
Is there any way so that it stops before it goes through all the items, or is there an other way to achieve what I want ?

Thanks in advance for your help !

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

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:

hello @Norhaa

Nested loops won’t work. Instead, use the sub workflow with the Execute Workflow Node

2 Likes

I modified as you said and it worked, thank you so much !

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