# While loop

**While Loop** node iterates over a list or a collection, executing a set of instructions for each item until an exit condition is met.

## Properties panel

### General

<table><thead><tr><th width="199">Field</th><th>Description</th><th>Required</th></tr></thead><tbody><tr><td>Node name</td><td><a href="/pages/jJ1qO0Ju8d7VFyPB2Jy3"><mark style="color:blue;"><strong>Checkout Node name</strong></mark></a></td><td>true</td></tr><tr><td>Condition</td><td>Condition when you would like to exit the loop. Check <a href="/pages/aJtci0lt5gcR4VOrIDr9">this documentation</a> to see how to build conditions in this node.</td><td>true</td></tr></tbody></table>

### Returns

This node does not return any value


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cosmocloud.io/flow-builder/node-types/loop-nodes/while-loop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
