---
title: "and"
description: "Learn how to use the 'and' evaluator to execute actions based on multiple true conditions in configuration docs. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/developers/ui-dev/evaluators/and"
---

# and

If ALL of the contained condition blocks evaluate to true.

```
{
    "evaluator": "and",
    "condition": [block1, block2...]
}
```

## Example

This block, taken from the [Configuration](/documentation/gitana/4.0/developers/ui-dev/configuration.md) docs, adds a `custom-download-scan` document action only if the document is both a file and also has a `scan` attachment:

```
{
    "evaluator": "and",
    "condition": [{
        "evaluator": "document-is-file"
    }, {
        "evaluator": "document-has-attachment",
        "condition": "scan"
    }],
    "config": {
        "document-actions": [{
            "id": "custom-download-scan"
        }]
    }
}
```

## See also

- [Configuration](/documentation/gitana/4.0/developers/ui-dev/configuration.md)
- [or](/documentation/gitana/4.0/developers/ui-dev/evaluators/or.md)
- [not](/documentation/gitana/4.0/developers/ui-dev/evaluators/not.md)
- [document-is-file](/documentation/gitana/4.0/developers/ui-dev/evaluators/document-is-file.md)
- [document-has-attachment](/documentation/gitana/4.0/developers/ui-dev/evaluators/document-has-attachment.md)
- [Releases Menu Item](/documentation/gitana/4.0/developers/ui-dev/samples/releases-menu-item.md) (combines `context-project` with `project-releases-enabled`)
