> For the complete documentation index, see [llms.txt](https://docs.chainargos.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chainargos.com/documentation/concepts/filters/customizing-filters.md).

# 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="/files/BE9xOa3JrElup8GmiTui" 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="/files/P3MmI4sIcyKLPFO25vCT" 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;
