# End Loop

This is a pre-built action available under the **@Generic Element**. The functionality of this action ends loop execution when parameterized data is used in a Test steps. When you use the **Get Param** action, a **Start Loop** action must come before it, and an **End Loop** action must follow it to avoid dangling errors during debug or execution

## Syntax  &#x20;

**Input Value**: `N/A`&#x20;

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

**Output Value**: N/A

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

### **Example: Ending Loop Execution**

In this example, we explain how the End Loop action marks the closing point of a loop structure initiated by the **Start Loop** action.

* **Action**: End Loop
* **Input Value**: N/A
  * The **End Loop** action does not required any input value.
* **Logical Explanation**: The **End Loop** action defines the end boundary of a loop structure that begins with the **Start Loop** action. When execution reaches the **End Loop** action, the system checks the looping parameters retrieved by the preceding **Get Param** action. Based on these parameters, the execution either repeats the steps enclosed between **Start Loop** and **End Loop** or exits the loop if all iterations are complete.

<figure><img src="/files/m9ZKw6ol9s7G0mKly2UF" alt=""><figcaption></figcaption></figure>


---

# 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.avoautomation.com/avo-assure/actions/generic/loops-and-condition-operations-1/end-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.
