> For the complete documentation index, see [llms.txt](https://readme.directual.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://readme.directual.com/api-integrations/api-endpoints-security-layer/coding-mode-in-filters.md).

# Coding mode (raw mode) in filters

You can compose complex filters in API

`"exp": "all" == AND`

`"exp": "any" == OR`

```
[
	{
		"exp": "all",
		"filters": [
        {
            "exp": "any",
            "filters": [
                {
                    "exp": "isEmptyValue",
                    "field": "category",
                    "value": "{{HttpRequest.category}}",
                    "isExp": false
                },
                {
                    "exp": "in",
                    "field": "category",
                    "value": "{{HttpRequest.category}}",
                    "isExp": false
                }
            ]
        },
        {
            "exp": "any",
            "filters": [
                {
                    "exp": "isEmptyValue",
                    "field": "portalID",
                    "value": "{{HttpRequest.portalid}}",
                    "isExp": false
                },
                {
                    "exp": "==",
                    "field": "colour",
                    "value": "{{HttpRequest.colour}}",
                    "isExp": false
                }
            ]
        }
		]
	}
]
```
