> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/business-logic/block/logic/loop.md).

# Loop

{% embed url="<https://youtu.be/WPUW2pv3hwY>" %}

### Flow Connections

* \[Input] In - starts the block's execution.
* \[Output] Loop body - activates once for each iteration.
* \[Output] Completed - activates when all the iterations have finished.

### Data Connections

* \[Input] Times (integer) - number of times to execute the "Loop body" flow output.
* \[Output] Iteration (integer) - the number of the iteration (starting at 0), increases by 1 with every iteration.
