% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/middleware.R
\name{.is_between}
\alias{.is_between}
\title{Check whether a value falls inside a range}
\usage{
.is_between(range, val, inclusive = TRUE)
}
\arguments{
\item{range}{A numeric vector of length 2 giving the range to check.}

\item{val}{A numeric value to test against range.}

\item{inclusive}{Logical. If TRUE, values equal to either range endpoint are
treated as inside the range. If FALSE, values must fall strictly between
the endpoints.}
}
\value{
A single logical value.
}
\description{
Internal helper used by coaching checks to determine whether a target value
falls within a numeric range. The input range is sorted before comparison, so
the function is insensitive to whether the range is supplied as low-high or
high-low.
}
\keyword{internal}
