Could you use "is" in ahk

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hieveryone
Posts: 43
Joined: 28 Nov 2022, 01:31

Could you use "is" in ahk

Post by hieveryone » 28 Nov 2022, 05:27

And how to use
Just asking

User avatar
mikeyww
Posts: 26882
Joined: 09 Sep 2014, 18:38

Re: Could you use "is" in ahk

Post by mikeyww » 28 Nov 2022, 07:58

Code: Select all

y = x
MsgBox, 64, Function, % isX(y)
; y = 3
If y is integer
     MsgBox, 64, State, Integer
Else MsgBox, 48, State, Not integer

isX(str) {
 Return str = "x"
}
Explained: Is

Post Reply

Return to “Ask for Help (v1)”