Multiple comparison operators in one parentheses
Posted: 11 May 2021, 21:34
AHK v1 accepts this code:
The (0 < var < 100) is not being evaluated as I was expecting (I've tried adding % and removing brackets).
What does ahk interpret (0 < var < 100) as exactly? I've looked in the manual but couldn't seem to find anything.
Apologies in advance.
Code: Select all
var := 0
if (0 < var < 100)
msgbox var is between 0 and 100
else
msgbox var is NOT between 0 and 100
What does ahk interpret (0 < var < 100) as exactly? I've looked in the manual but couldn't seem to find anything.
Apologies in advance.