# Destination filters

With filters, you have the possibility to define some conditions. As a result, some events will be sent and some don't, according to your conditions.

## Simple filter

Use the drop down to select the property on which you want to filter, then select the operator and the value to filter on.

<figure><img src="/files/xOSq1NEp48jSa18s5bPU" alt=""><figcaption></figcaption></figure>

Available operators:

* is
* isn't
* match regex *(see also '*[*About regex*](#about-regex)*' section)*
* doesn't match the regex *(see also '*[*About regex*](#about-regex)*' section)*
* contains
* doesn't contain
* starts with
* doesn't start with
* ends with
* doesn't end with
* exists
* doesn't exist
* is empty

## Advanced filter

An "Advanced" filter can be used when a simple one is not sufficient.

The simple filter will be automatically transcribed into the advanced one, but the opposite is not possible, as advanced functions are not supported by the simple filter.

<figure><img src="/files/Es7GGiTXz2vV7xipfPkt" alt=""><figcaption><p>From simple filter...</p></figcaption></figure>

<figure><img src="/files/I4tPuYWUK8rkY4VqaXRr" alt=""><figcaption><p>...to advanced filter</p></figcaption></figure>

With Advanced filter, you can use formula and advanced [functions](/features/data-quality/data-cleansing/supported-transformation-functions.md), simply click on the button on the right of the field to see all available functions.

Supported operators:

* `= (equals to)`
* `> (smaller than)`
* `< (greater than)`
* `!= (different from)`

Supported conditions:

* `AND`
* `OR`

Supported functions:

{% content-ref url="/pages/VRjb6QP4Zfqbqvuzx4Dj" %}
[Supported transformation functions - Data cleansing](/features/data-quality/data-cleansing/supported-transformation-functions.md)
{% endcontent-ref %}

{% hint style="info" %}
Always use " " to enter a value in advanced mode.\
All values entered without " " will be treated as a number.
{% endhint %}

### About Regex

Both simple and advanced filter can manage regex:

<figure><img src="/files/CyX5i1pgF8Z53HNvuqbS" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/iI99opOxgGAwt2PmOXzk" alt=""><figcaption></figcaption></figure>

To know how to build a regex, please refer to [regular expression documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions).

## Consent filter

For clients using our CMP module: simply select the appropriate category in the drop down.

<figure><img src="/files/gRocp8198mhWn5kYoiGC" alt=""><figcaption></figcaption></figure>

For clients using an external CMP: Simply enter the value as it is collected in the "user.consent\_categories" of your server side events.

Example:

<figure><img src="/files/jqKK7faO2YTuXQ9dk8aT" alt=""><figcaption></figcaption></figure>


---

# 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://doc.commandersact.com/features/destinations/destination-filters.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.
