# LogicalNot Criterion

The [`LogicalNot` Search Criterion](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-LogicalNot.html) matches content URL if the provided Criterion doesn't match.

It takes only one Criterion in the array parameter.

## Arguments

- `criterion` - represents the Criterion that should be negated

## Example

```
$query->filter = new Criterion\LogicalNot(
    new Criterion\ContentTypeIdentifier($contentTypeId)
);
```

### REST API

**XML**

```
<Query>
    <Criterion>
        <LogicalNotCriterion>
            <ContentTypeIdentifierCriterion>article</ContentTypeIdentifierCriterion>
        </LogicalNotCriterion>
    </Criterion>
</Query>
```

**JSON**

```
{
  "Query": {
    "Criterion": {
      "LogicalNotCriterion": {
        "ContentTypeIdentifierCriterion": "article"
      }
    }
  }
}
```
