Code: Select all
x=panda
if (x is number && x>1000)
msgbox, yes %x% is a number
Code: Select all
x=panda
if (x is number && x>1000)
msgbox, yes %x% is a number
https://www.autohotkey.com/docs/commands/IfIs.htm#Remarks wrote:The "is" operator is not supported in expressions.
Code: Select all
x=panda
if x is number
x>1000
msgbox, yes %x% is a number > 1000
Code: Select all
x=panda
if Is(x, "number") && x>1000
msgbox, yes %x% is a number > 1000
Is(Var, Typ) {
if Var is %Typ%
Return, True
Return, False
}