# Verify Column Header

This is a pre-built action in Avo Assure. This action verifies whether a specific column is **Present** or **Not** **Present** in the grid, and save the result in the dynamic variable.

### Syntax

**Input Value:** `<Column Header Value>`&#x20;

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td><p>Column Header Value</p><p>(Required)</p></td><td>Required column name of the grid</td><td></td></tr><tr><td><p><em>Not</em></p><p><em>(Optional)</em></p></td><td><em>Not is used when working with negative scenario and it is not case sensitive</em></td><td></td></tr></tbody></table>

**Output Value:**

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;Dynamic Variable>(Optional);&#x3C;Dynamic Variable>(Optional)</td><td>This variable holds the results in <strong>True</strong> and <strong>False</strong></td><td></td></tr></tbody></table>

### **Example 1**

**Checks if a column header exists or not in the Grid**\
\
The **Verify Column Header** action takes the value from the Input Value column (e.g., **Date;Not**) and checks whether the specified column header **(Date)** exists in the Grid. If "**Not**" is provided, it checks for the absence of the column. The result is stored in the **{Header}** variable, while the execution status is stored in the **{Status}** variable, with the following possible values:

* **True** – if the header is found&#x20;
* **False** – if the header is not found&#x20;

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FZACwwvEU3qm0fs8pbQk8%2Fimage.png?alt=media&#x26;token=163226ce-ae1c-46b6-bade-592e0c7bb8e6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FIjqb47iZodYVPoR3KhEO%2Fimage.png?alt=media&#x26;token=a7ad796d-73c5-42e9-948a-f70ced63bcb3" alt=""><figcaption></figcaption></figure>

### **Example 2**

**Verify Column Header (Year)**\
\
The **Verify Column Header** action takes the value from the Input Value column (**Year**) and verifies whether the specified column header exists in the Grid. The result of the verification is stored in the **{Header}** variable, while the execution status is stored in the **{Status}** variable, with the following possible values:

* **True** – if the column header is found.
* **False** – if the column header is not found or an error occurs.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2Fw3wxOIFHQIf32ND4i6J0%2Fimage.png?alt=media&#x26;token=0edfd555-95e0-4b43-9742-ceff415c6c31" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FjPNrHulPkbzw3j1g5JMi%2Fimage.png?alt=media&#x26;token=3ffb0eed-4cd2-4a06-af6c-cd74e0604e96" alt=""><figcaption></figcaption></figure>
