# Filters and Rules

Source: https://ducted.app/help/kb/filters-and-rules
Category: Feeds & Mapping

Filters let you control which records appear in your feed. Any record that doesn't pass your filters is excluded from the output.

![The filter builder with two OR-ed groups of AND conditions](https://ducted.app/kb/filter.png)

## Adding a filter

In the Feed Editor, go to the **Filters** tab. Click **+ Add filter**. Choose:
- **Column** - the source column to evaluate
- **Operator** - the condition to apply
- **Value** - what to compare against

## Operators

- **equals / not equals** - exact string or number match
- **contains / does not contain** - substring match (case-insensitive)
- **starts with / ends with** - prefix or suffix match
- **is empty / is not empty** - checks whether the value is blank
- **greater than / less than** - numeric comparison (useful for price-based filters)
- **matches regex / does not match regex** - advanced pattern matching

## Filter groups (AND / OR logic)

Filters are organised into **groups**. Within a group, **all rules must pass** (AND). Between groups, **any one group passing is enough** (OR).

Example - show items that are Nike size 10 OR Adidas size 10:

Group 1: brand = Nike AND size = 10
Group 2: brand = Adidas AND size = 10

## Practical examples

- Hide out-of-stock items: `availability does not equal out_of_stock`
- Show only items above £10: `price greater than 10`
- Exclude refurbished items: `condition not equals refurbished`
- Only items with images: `image is not empty`
