# LogicalAnd Criterion

The [`LogicalAnd` Search Criterion](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-LogicalAnd.html) matches content if all provided Criteria match.

When querying for [products](https://doc.ibexa.co/en/latest/product_catalog/product_api/index.md), use [LogicalAnd](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-Product-Query-Criterion-LogicalAnd.html) instead.

## Arguments

- `criterion` - a set of Criteria combined by the logical operator

## Example

### PHP

```
$query->query = new Criterion\LogicalAnd([
        new Criterion\ContentTypeIdentifier('article'),
        new Criterion\SectionIdentifier(['sports', 'news']);
    ]
);
```

### REST API

**XML**

```
<Query>
    <Filter>
        <AND>
            <ContentTypeIdentifierCriterion>article</ContentTypeIdentifierCriterion>
            <SectionIdentifierCriterion>news</SectionIdentifierCriterion>
        </AND>
    </Filter>
</Query>
```

**JSON**

```
{
    "Query": {
        "Filter": {
            "AND": {
                "ContentTypeIdentifierCriterion": "article",
                "SectionIdentifierCriterion": "news"
            }
        }
    }
}
```
