> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eloquentfiltering.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Not Between

export const type_0 = "$notBetween"

## Definition

```php theme={null}
Filter::field('age', [FilterType::NOT_BETWEEN]);
```

## Array/Object Structure

<ParamField body="type" type="string" required>
  <code>
    {type_0}
  </code>
</ParamField>

<ParamField body="target" type="string" required />

<ParamField body="value" type="array,size:2" required />

<ParamField body="value.*" type="string|int|float" required />

## Example

```php theme={null}
$filter = [
    'type'   => '$notBetween',
    'target' => 'age',
    'value'  => [18, 65,],
];
```

```php theme={null}
$sql = Person::filter([$filter])->toRawSql();
```

### SQL

```sql theme={null}
select * from "people" where "people"."age" not between 18 and 65
```

## Modifiers

None available.
