# EndIf

This action in Avo Assure is available under the **@Generic Element**. Its functionality is to close the If condition statement after executing the conditional logic. Without the **EndIf** action, the If condition cannot execute correctly and results in a dangling error.

## Syntax

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

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

**Output Value:** `N/A`

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

**Example**

**Marks the end of an If or Else block in the execution flow**

The **End If** action does not require any value from the Input Value column. It signifies the closure of an If, Else If, or Else block and ensures the logical condition block is completed before continuing with the next steps in the execution.&#x20;

<figure><img src="/files/HqhPQyW2oCG9X5JYbEfJ" 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/endif.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.
