# File compare

### Description

The `File Compare` action compares the contents of 2 files. It returns true if the files are equal, false if different.

When the contents of the files are the same the success outgoing hop will be followed, else the failure hop will be followed.

### Options

| Option                 | Description                                                  |
| ---------------------- | ------------------------------------------------------------ |
| Action name            | The name of the workflow action.                             |
| File name 1            | The name and path of the file of the first file to compare.  |
| File name 2            | The name and path of the file of the second file to compare. |
| Add filename to result | Add the filenames for both files to the result.              |


---

# 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.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/filecompare.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.
