# 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FygTX5XJK5EFNZXpV2eV4%2Fimage.png?alt=media&#x26;token=bd36d16b-09fa-418a-a797-8bd98a603e45" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F7ICyNIzqBIL0wLJyFTDN%2Fimage.png?alt=media&#x26;token=af9001db-53bb-4607-8b99-6d8651eda776" 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FhHIUXGWYss2mfe3Uw1Kp%2Fimage.png?alt=media&#x26;token=8d1b70ee-c880-476b-816e-b79e0a314521" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FELkjhIDStpPBAiwyvO6x%2Fimage.png?alt=media&#x26;token=36302bb3-615a-4a83-bc4e-51c919141a80" alt=""><figcaption></figcaption></figure>
