# Iterate children

![](/files/EPhEvNp5qEibwZ6DCsOP)

{% tabs %}
{% tab title="Entry Vars" %}
**Parent :**&#x48;ere we must select from the entry options ![](/files/VulSeHibPHjsFUm6kYVI) in the "Controls" ![](/files/rjljDgWEEwZ7pe6j0Naa)category the parent control that contains the elements we want to iterate ove&#x72;**. (Required)**

**Tags :**&#x59;ou must select the controls that you want to iterate within the parent containe&#x72;**.  (Required)**

**Step by Step :**

<figure><img src="/files/wo2tmBEpg7VAiNJVlSYQ" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Callbacks & OutVars" %}
**On error :** It is called when we do not send a control correctly in the Entry Var.

OutVars

```json
"You didn´t select a correct parent"
```

**On iteration :** It returns the entire structure of the controls that it finds in the iteration.

OutVars ( Example structure of a container can vary by control )

```json
{
        "tag": "View",
        "style": {
            "width": {
                "value": 100,
                "unit": "%"
            },
            "paddingTop": 0,
            "height": {
                "value": 125,
                "unit": "px"
            },
            "heightAuto": false,
            "paddingRight": 0,
            "flexDirection": "row",
            "paddingBottom": 0,
            "overflow": "hidden",
            "paddingLeft": 0,
            "background": {
                "value": {
                    "base": "primary",
                    "shade": 500,
                    "alpha": 1
                },
                "type": "palette"
            }
        },
        "scroll": {
            "vertical": false,
            "horizontal": true
        },
        "name": "container",
        "containerType": "wrapper",
        "isDynamicLoadingEnabled": false,
        "id": "bEe98ABFX9dcTsw8xpQ8mS",
        "controls": [
            {
                "style": {
                    "width": {
                        "value": 100,
                        "unit": "%"
                    },
                    "paddingLeft": 0,
                    "paddingTop": 0,
                    "height": {
                        "value": 100,
                        "unit": "%"
                    },
                    "paddingRight": 0,
                    "flexDirection": "column",
                    "paddingBottom": 0,
                    "overflow": "hidden",
                    "justifyContent": "center",
                    "alignItems": "center"
                },
                "name": "container",
                "tag": "View",
                "id": "tYaxTb5tAQ7dcVjNhJqGfH",
                "containerType": "inner"
            }
        ]
    }
```

{% endtab %}

{% tab title="Features" %}

{% endtab %}

{% tab title="examples" %}

{% endtab %}
{% endtabs %}


---

# 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.apphive.io/reference/funciones/controls/iterate-children.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.
