array := ["one", "two", "three"]
; 从 1 到项目数进行重复:
Loop % array.Length()
MsgBox % array[A_Index]
; 枚举数组内容:
For index, value in array
MsgBox % "Item " index " is '" value "'"
; 从 1 到项目数进行重复:
Loop % array.Length()
MsgBox % array[A_Index]
; 枚举数组内容:
For index, value in array
MsgBox % "Item " index " is '" value "'"