# Null Check

This is a pre-built Action located under the **@Generic Element**. The functionality of this action in Avo Assure is to verify whether the specified input is a null or empty value. The result is stored in the given dynamic variable for further use during test execution.

## **Syntax**

**Input Value**: `<Variable>`&#x20;

| Argument                         | Description                                                                                                                                |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>\<Variable><br>(Required)</p> | <p>Provide the name of the variable you want to check for null or empty.<br>Supported Input format: </p><ul><li>Dynamic variable</li></ul> |

**Output Value**: `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`

| Argument                                                    | Description                                                       |
| ----------------------------------------------------------- | ----------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | Both dynamic variable stores the status as **True** or **False**. |

### **Example: Performing a Null Check on a Variable**

In this example, we explain how to check whether a given variable is null.

* **Action**: Null Check
* **Input Value**: {Username}
  * The argument (**{Username}**) specifies the variable to be checked for null or empty value.
* **Output Value**: {Status}
  * The result of the null check is stored in the **{Status}** dynamic variable, with the following possible values:
    * **True**: If the variable is null or empty.
    * **False**: If the variable contains a value.
* **Logical Explanation**: The **Null Check** action reads the value from the **Input Value** column (**{Username}**). It evaluates whether the variable is null or empty. The result of this evaluation (**True**) is stored in the **{Status}** variable.

{% hint style="info" %}
**Note**: In this example, a test step with the **Create Dynamic Variable** action is used to verify that the dynamic variable contains a value.
{% endhint %}

<figure><img src="/files/HjbxDNIuIvZ9VRo7cI3u" 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/other-operations/null-check.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.
