# Else-If

This action of Avo Assure available under the **@Generic Element** and the functionality of this action in Avo Assure is to check if the condition is satisfied or not. If the initial If condition fails, then the **Else-If** part is executed as an alternative conditional path and the result is store in dynamic variable.

{% hint style="warning" %}
***Note:** Without **If** action we cannot execute **Else-If**.*
{% endhint %}

### Syntax

**Input Value:**`(<operand1>;<operator>;<operand2>)`

| Argument                         | Description                                                                                                                                                                                                                                                                                                                                                        |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>\<operand1><br>(Required)</p> | An operand is the value or data that an operator acts upon. It can be a constant (number, string, etc.).                                                                                                                                                                                                                                                           |
| <p>\<operator><br>(Required)</p> | <p>An operator is a symbol or mathematical operation that performs a specific comparison.<br><strong>Supported operators:</strong> <strong>></strong>, <strong><</strong>, <strong>==</strong>, <strong>>=</strong>, <strong><=</strong>, <strong>!=</strong> along with the logical operators <strong>AND</strong>, <strong>OR</strong>, <strong>NOT</strong></p> |
| <p>\<operand2><br>(Required)</p> | Value to compare against operand1. Can be a static value or a dynamic variable.                                                                                                                                                                                                                                                                                    |

#### Output Value

<table><thead><tr><th width="331.33343505859375">Argument</th><th>Description</th></tr></thead><tbody><tr><td>&#x3C;Dynamic Variable>(Optional);&#x3C;Dynamic Variable>(Optional)</td><td>This variable stores the status as <strong>true</strong> or <strong>false</strong></td></tr></tbody></table>

**Example**&#x20;

**Evaluates a new condition if the previous If condition fails**

The **ElseIf** action takes a condition in the Input Value column **(e.g., {Income};>=;50000)** and checks it only if the initial If condition is false. It allows branching logic to test another condition before proceeding to the Else block. The flow continues with the steps inside the Else If block if the condition is true; otherwise, it moves to the next Else If or Else block. The Else If action does not return any output or status.

**True**: condition defined in input field is successfully fulfilled

**False**: condition defined in input field is not fulfilled

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

{% hint style="warning" %}
**Note**: When using this conditional operation in a step of a Test Case, the status of its execution is stored in the test reports where:

* **Pass** means the conditional statements was executed successfully&#x20;
* **Fail** means the conditional statements did not execute successfully&#x20;
  {% endhint %}

<figure><img src="/files/lCUPLJrMMAs3Uk4Ukrus" 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/else-if.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.
