---
title: "Or"
description: "Learn how to use the 'or' condition for logical operations in policy configurations. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/engine/access-policies/conditions/or"
---

# Or

The `or` condition lets you perform a logical OR operation across multiple sub-conditions.

## Configuration

```
{
    "type": "or",
    "config": {
        "conditions": [
            ... subconditions
        ]
    }
}
```

## Sample #1

This policy document allows a principal to read content from the `/products` and `/images` folders.

```
{
    "title": "My Sample Policy",
    "statements": [{
        "action": "grant",
        "roles": ["consumer"],
        "conditions": [{
            "type": "or",
            "config": {
                "conditions": [{
                    "type": "path",
                    "config": {
                        "path": "^/products/.*"
                    }
                }, {
                    "type": "path",
                    "config": {
                        "path": "^/images/.*"
                    }
                }]
            }
        }]
    }]
}
```
