---
title: "File Exists Step"
url: "https://docs.robotiq.ai/en/article/file-exists-step"
language: "en"
last_updated: "2025-12-25T10:36:51.267Z"
---

# File Exists Step

The File Exists step checks if a file is in a certain spot. You use it to make sure a file is there before your automation tries to use it. This helps stop your workflows from running into errors.

## How to Use the File Exists Step

### Step 1: Add the File Exists Step

1.  Open your process in the Process Editor.
2.  Drag the "File Exists" step from the toolbox into your workflow.

### Step 2: Set the File Path

1.  Click on the "File Exists" step to open its settings.
2.  In the **File path** field, type the full path to the file you want to check.
    -   You can type a direct path (e.g., `C:\Documents\report.xlsx`).
    -   You can also use a string variable that already holds the file path.

### Step 3: Set the Output Variable

1.  In the **File Exists** field, type the name of a new or existing true/false variable.
2.  This variable will show the result of the check:
    -   `True` if the file is there.
    -   `False` if the file is not there.

**Example:** You might use a [Switch Step](https://docs.robotiq.ai/en/article/switch-step) after this step to do different things depending on if the file exists.

## Parameters Explained

**Step name** (Optional)

-   A custom name for this step in your process.
-   This helps you find the step in the Process Editor.

**File path** (Required)

-   The full path to the file you want to check.
-   **Example:** `C:\Data\my_document.pdf` or a variable like `{{filePathVariable}}`.

**File Exists** (Required)

-   The name of the true/false variable that will hold the result.
-   **Example:** `isFilePresent`
-   If the file exists, `isFilePresent` will be `True`. If not, it will be `False`.

## Related Articles

-   [Folder Exists Step - Robotiq.ai](https://docs.robotiq.ai/en/article/folder-exists-step)
-   [Define Variable Step - Robotiq.ai](https://docs.robotiq.ai/en/article/define-variable-step)
-   [Switch Step - Robotiq.ai](https://docs.robotiq.ai/en/article/switch-step)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/552e17bd-407b-4529-9003-010f6ded0184)
