Code: Select all
ABC:=Object()
ABC[1]:="abcde"
if ABC[1] is digit ;-not work
MsgBox, ABC[1] is digit
tmp:=ABC[1]
if tmp is digit ;-its work
MsgBox, tmp is digit
Code: Select all
ABC:=Object()
ABC[1]:="abcde"
if ABC[1] is digit ;-not work
MsgBox, ABC[1] is digit
tmp:=ABC[1]
if tmp is digit ;-its work
MsgBox, tmp is digit
The docs wrote:var
[indent=1]The variable name.[/indent]
Code: Select all
;requires AHK v2
ABC:=Object()
ABC[1]:="abcde"
if ABC[1] is "digit" ; works
MsgBox, ABC[1] is digit
tmp:=ABC[1]
if tmp is "digit" ; works
MsgBox, tmp is digit
what does that meannnnik wrote:Already getting into adding the first quirks aren't we?
this still doesn't make any sensennnik wrote: Until now operators always accepted expressions. This one is an exception essentially making it a quirk ( and by doing so defying the reason v2 even came into creation )
wrong.nnnik wrote:No I mean what I said.
is is an operator.
It takes a Variable name instead of an expression.
Users browsing this forum: No registered users and 9 guests