# TLO:Range

## Description

Test if *n* is inside a range of 2 numbers or between 2 numbers

## Forms

* [*range*](/macroquest/data-types-and-top-level-objects/data-types/datatype-range.md) **Range**

## Access to Types

* [*range*](/macroquest/data-types-and-top-level-objects/data-types/datatype-range.md) **Between**
* [*range*](/macroquest/data-types-and-top-level-objects/data-types/datatype-range.md) **Inside**

## See Also

* [Top-Level Objects](/macroquest/data-types-and-top-level-objects/top-level-objects.md)
* [DataType:range](/macroquest/data-types-and-top-level-objects/data-types/datatype-range.md)

## Changes.txt

Note: this is the info from the changes.txt this is not how it functions in current mq2.

`24 Apr 2017 by htw`\
`- Added a new TLO ${Range} which returns a pRangeType`\
`pRangeType has 2 members:`\
`Between which returns TRUE or FALSE`\
`and`\
`Inside which also returns TRUE or FALSE`\
`Usage Example:`\
`/echo ${Range.Inside[10,5:9]}`\
`which will return TRUE since 5 and 9 are both within the 10 range.`\
`/echo ${Range.Between[85,95:100]}`\
`which will return FALSE since 85 is not a number between 95 and 100`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/data-types-and-top-level-objects/top-level-objects/tlo-range.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
