# Loop Nodes

Loop nodes are integral elements that facilitate the automation of repetitive tasks within workflows. These nodes empower users to iterate over a set of data, perform a series of actions multiple times, and dynamically process each iteration.

Some of the loop nodes present in cosmocloud are -

* **For Loop :** This node empowers you to iterate over a set of values or elements within your API flow, enabling you to perform repetitive actions, apply logic, and process data sequentially as part of your workflow.&#x20;
* **While Loop :** This node empowers you to create a loop within your API flow that continues executing as long as a specified condition is met.


---

# 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.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.
