# Customizing Filters

Custom filters let you write the fields, constants, functions, and operators for your desired filtering.&#x20;

ChainArgos also lets you build an expression that evaluates as `TRUE` or `FALSE`. When you run the query, ChainArgos only returns rows for which that condition is `TRUE`.

The `AND/OR` filters enables you to group and use `AND/OR` filter logic without having to manually create filter expressions.

### To get `OR` Logic

Type multiple conditions into the same filter, separated by commas. For example, `today, 7 days ago` means "today or 7 days ago".

### To get `AND` Logic

Type your conditions, one by one, into multiple time filters.&#x20;

For example, you could:

1. put into a "Block Times" **Block Written Date -> is on or after -> (absolute) -> 2018/01/01** filter;
2. then put "Block Times" **Block Written Date -> is on before -> (relative) -> 2 days** filter.&#x20;
3. This would mean "January 1st, 2018 and after, **AND** before 2 days ago".

<figure><img src="https://1800800006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCgjz9nFZqIwynK1SO4gz%2Fuploads%2FtQV8LlXMpS7FZD1xZ5Bp%2Fimage.png?alt=media&#x26;token=9e7db2f7-150d-4529-bf4e-27dba5f175b7" alt=""><figcaption></figcaption></figure>

### `AND` / `OR` Logic Combinations

`AND` / `OR` logic can be used to create sophisticated filters to zoom in on a specific data set.&#x20;

By clicking on the `AND` button, you can easily switch the operator to `OR`, and add additional filters to create a sophisticated series of `AND` / `OR` operators.&#x20;

<figure><img src="https://1800800006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCgjz9nFZqIwynK1SO4gz%2Fuploads%2FmDVZcu10WUu8vCOmAnea%2Fimage.png?alt=media&#x26;token=90b9ebc5-ae6a-4eba-9a0a-8b7d71611e45" alt=""><figcaption><p>Click on the "AND" button to toggle between "<code>AND</code>" or "<code>OR</code>".</p></figcaption></figure>

Be careful the logic you use for multiple filters does not contradict, otherwise you may get conflicting results, or possibly none at all.&#x20;
