# 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](https://docs.couchdrop.io/features/transfer-automations/automation-builder) 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.
