loop,2 { msgbox,%A_index% }
will display 1 and then 2.
is there a way to do something similar with nested loops? From what i can see, the %A_index% always 'refers' to the last loop started. Is there a built in way to access the index for a different loop? Basically, fill in the blank:
loop,2 { loop,2 { msgbox, %A_index% is the inner loop index msgbox, __________ is the outer loop index } }