> For the complete documentation index, see [llms.txt](https://v5docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v5docs.keyfax.biz/reference/expression-reference/numeric-expressions/between.md).

# Between

Returns `True` when the databox value falls within a range, inclusive of both ends.

| Expression             | Databox value                   | Result |
| ---------------------- | ------------------------------- | ------ |
| `Between(10,5)`        | `5`, `6`, `7`, `8`, `9` or `10` | `True` |
| `WeekDay Between(3,4)` | `22/06/2023`                    | `True` |

The two ends can be given in either order — `Between(5,10)` and `Between(10,5)` mean the same thing.

The second example shows the usual pattern: turn the value into a number with another function first, then test the range. Here `WeekDay` gives the day number and the test asks whether it is a Tuesday or a Wednesday.

For dates, use [BetweenDates](/reference/expression-reference/date-expressions/betweendates.md) instead.
