Code: Select all
r::
if((3.3456 between 1 and 3)){
debug := 3.456 " between " 1 " and " 3
Send {Enter}
Send %debug%
}
Code: Select all
r::
if((3.3456 between 1 and 3)){
debug := 3.456 " between " 1 " and " 3
Send {Enter}
Send %debug%
}
Alternatively, follow the If...between syntax shown in the examples in the docs. (Hint: the first parameter needs to be a variable name - a literal number wouldn't work, afaics (at least not as you'd probably expect )).https://www.autohotkey.com/docs/commands/IfBetween.htm#Remarks wrote:The "between" operator is not supported in expressions. Instead, use If statements such as if (Var >= LowerBound and Var <= UpperBound) to simulate the behavior of this operator.
Code: Select all
A := new biga() ; requires https://github.com/biga-ahk/biga.ahk
A.inRange(3.3456, 1, 3)
; => false