Related

Example(s)

if var between 1 and 5
MsgBox, %var% is in the range 1 to 5, inclusive.
if var not between 0.0 and 1.0
MsgBox %var% is not in the range 0.0 to 1.0, inclusive.
if var between blue and red
MsgBox %var% is alphabetically between blue and red.
LowerLimit = 1
UpperLimit = 10
InputBox, UserInput, Enter a number between %LowerLimit% and %UpperLimit%
if UserInput not between %LowerLimit% and %UpperLimit%
MsgBox Your input is not within the valid range.