Count and limit executions in a loop

How do I count how many times that loop has been executed and limit it within a loop? I tried to do it like this, but it stays in an infinite loop.

Please share your workflow

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:

You can use {{ $runIndex }}

4 Likes

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