# Verify Content

This is pre-built Action located under the **@Generic Element,** instructs the Avo Assure to verify that the provided content is present in the file or not and save the result in the given dynamic variable.

### **Syntax**

**Input Value:**

**For Text:** `<file path>;<content to verify>;<abs>(Optional)`

| Argument                                  | Description                                                                                                                     |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<file path></p><p>(Required)</p>      | <p>Specify the file path of the file whose content needs to be verified.<br>Supported file format:<br><strong>.txt</strong></p> |
| <p>\<content to verify><br>(Required)</p> | Specify the text to be verified against the file content.                                                                       |
| <p>\<abs></p><p>(Optional)</p>            | If the specified content is to be verified against the entire text file’s content, then the ‘abs’ argument must be specified.   |

**For Excel:** `<file path>;<sheetname>;<content to verify>;<abs>(Optional)`&#x20;

| Argument                                  | Description                                                                                                                          |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| <p>\<file path></p><p>(Required)</p>      | <p>Specify the file path of the file to be searched.<br>Supported file format:<br><strong>.xlsx</strong>, <strong>.xls</strong> </p> |
| <p>\<sheetname><br>(Required)</p>         | Provide name of the worksheet within the file where the search will be performed.                                                    |
| <p>\<content to verify><br>(Required)</p> | Specific text or value that needs to be verified                                                                                     |
| <p>\<abs></p><p>(Optional)</p>            | If the specified content is to be verified against the entire excel sheet’s content, then the ‘abs’ argument must be specified.      |

**Output Value:**&#x20;

| Argument                                                    | Description                                              |
| ----------------------------------------------------------- | -------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | This variable stores the status as **true** or **false** |

**Example 1**

**Verify specific content exists in a Text file**\
\
The **Verify Content** action takes the value from the Input Value column (e.g., **C:\sam\data.txt;Hello User)** and checks whether the specified content (Hello User) exists in the given file. The action status is saved in the **{Status}** variable with the following possible values:

* **True** –  if the content is found successfully
* **False** – if the content is not found

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

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

**Example 2**

**Verify the presence of specific content in a Excel file**

The **Verify Content** action takes the value from the Input Value column (e.g., **C:\sam\Avo Bank Flow\.xlsx;Sheet1;John white**) and checks whether the specified content (John white) exists in the given file. The action status is saved in the **{Status}** variable with the following possible values:

* **True** – if the content is found successfully
* **False** – if the content is not found

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

<figure><img src="/files/ftmNuZYzIRnpdziz7XJ8" 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/file-and-folder-operations/verify-content.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.
