[O3 Framework](../API.md) / inRange

# Function: inRange()

> **inRange**(`min`, `max`): [`Validator`](../type-aliases/Validator.md)

Defined in: [packages/framework/esm-config/src/validators/validators.ts:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/validators/validators.ts#L11)

Verifies that the value is between the provided minimum and maximum

## Parameters

### min

`number`

Minimum acceptable value

### max

`number`

Maximum acceptable value

## Returns

[`Validator`](../type-aliases/Validator.md)

A validator function that checks if a value is within the specified range.
