# Conditional Filtering

## Introduction

Couchdrop allows for conditional filtering so that specific actions in a workflow only apply if certain conditions are met. This allows the use of one workflow for multiple scenarios and to selectively apply the workflow to specific files only.&#x20;

### Setting conditions

Conditions are set in the [automation builder](/features/transfer-automations/automation-builder.md) by clicking a plus sign and choosing **Conditions**.&#x20;

### Types of Filters

You can select from multiple filters when building an automation:

<table><thead><tr><th width="212.703125">Name</th><th width="236.25">Description</th><th width="109.94140625">Example</th><th>Explanation</th></tr></thead><tbody><tr><td>Filename matches</td><td>Only applies for to a filename with the exact match</td><td>Files.txt</td><td>Only files named "Files.txt" will continue</td></tr><tr><td>Filename does not match</td><td>Applies to all files except for the filename with the exact match</td><td>Files.txt</td><td>All files except files named "Files.txt" will continue</td></tr><tr><td>File Modtime</td><td>Specify a modification time. Supports before, after, "in the last" and "older than" </td><td>Older than 7 Days</td><td>Only files modified more than 7 days ago will continue</td></tr><tr><td>Directory matches</td><td>Select a location to choose a directory or paste full path</td><td>Hosted-2024</td><td>Only files in "Hosted- 2024" directory will continue</td></tr><tr><td>Directory does not match</td><td>Select a location to exclude a directory or paste full path</td><td>Hosted-2024</td><td>All files except those in "Hosted-2024" directory will continue</td></tr></tbody></table>

#### AND filtering

Use "Match all of these conditions (AND)" to only apply the following action when all conditions are met.&#x20;

#### OR Filtering

Use "Match any of these conditions (OR)" to apply if a single specified condition is met.


---

# 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.couchdrop.io/features/transfer-automations/conditional-filtering.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.
