> For the complete documentation index, see [llms.txt](https://docs.zontroy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zontroy.com/zontroy-offline-code-generator/zontroy-ai-offline-code-generator-tutorial/zg-for.md).

# zg-for

### *<mark style="color:blue;">For Loop</mark>*

<figure><img src="https://2376111118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqa0RxPoDArscnrvdRrnX%2Fuploads%2F3mC2uL7SoAAksdTSHMQo%2Fimage.png?alt=media&amp;token=16c15e98-63f6-4fc0-ba9a-a797f15648da" alt=""><figcaption></figcaption></figure>

*For loop is a programming language conditional iterative statement which is used to check for certain conditions and then repeatedly execute a block of code as long as those conditions are met.*

```
zg-for((([[[variable]]]:::[[[predefined_collection]]]))){{{

}}}
```
