---
title: "BETWEEN in Strata | Oplema"
description: "Check whether a value falls within an inclusive range. Write it as expr BETWEEN low AND high in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/between"
updated: "2026-11-04"
---

# BETWEEN

Check whether a value falls within an inclusive range.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **BOOLEAN**.

Example input

1. Row 1 `amount = 20`
2. Row 2 `amount = 120`
3. Row 3 `amount = NULL`

### Expression

```
amount BETWEEN 10 AND 50
```

### Result

```
Row 1: true
Row 2: false
Row 3: NULL
```

NULL means the value is missing.

This Boolean expression also works in [Filter](https://oplema.com/docs/strata/prep/filter) custom mode. The True output receives rows 1; the False output receives rows 2, 3. A missing result goes to False.

Try it live in Formula

Result
| id | amount | result |
| --- | --- | --- |
| 1 | 20 | true |
| 2 | 120 | false |
| 3 |  |  |

## Arguments and types

```
expr BETWEEN low AND high
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Related functions

[ifnull

Use a fallback when a value is missing.

](https://oplema.com/docs/strata/functions/ifnull)[nullif

Turn a sentinel value, such as zero or an empty string, into a missing value.

](https://oplema.com/docs/strata/functions/nullif)[CASE

Choose a result using one or more conditions.

](https://oplema.com/docs/strata/functions/case)[coalesce

Replace missing values with the first available alternative.

](https://oplema.com/docs/strata/functions/coalesce)

[Browse conditions & missing values](https://oplema.com/docs/strata/functions#conditions-&-missing-values) [DuckDB documentation](https://duckdb.org/docs/current/sql/expressions/comparison_operators.html)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
