简体   繁体   中英

autohotkey array null… how do you check if the array is null/empty?

Autohotkey is a real pain something this simple is easy in C# but I cant get it to work with Autohotkey .ahk file.

ListOfVal:=Arrays() ; Or ListOfVal:=[] | this creates the array <---comment

I have tried this...

if ListOfVal=null                                  
    MsgBox, "testing"

;Ive tried all these too...

;if ListOfVal==null

;if ListOfVal:=null 

;if !ListOfVal

;if ListOfVal.MaxIndex()<1        

;if ListOfVal.MaxIndex()=-1

You get the idea I'm pulling hair here, help please...

Try one of the following MinMaxIndex , Length , Count

or IsObject

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM