# 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FzvwyHRlllK4MiHLWnnPH%2Funknown.png?alt=media&#x26;token=82a3e264-1ddf-4efa-b198-ad55657359c0" alt=""><figcaption></figcaption></figure>
