"Until can be used with any Loop or For" (underline added)
I always knew I could do Loop..Until, but I somehow never realized I could do this:
Code: Select all
a := [2,4,6,8,10]
for i in a
msgbox i
until i>3
As I'm fixing code for the latest v2 alpha, I'm seeing lots of places to simplify code that currently uses an if/break condition inside the for. Super cool -- the wonders of autohotkey! I'm hoping there are no plans to remove this, now that I'm littering it all throughout 10k lines of code...
[Mod edit: Moved to 'Suggestions on documentation improvements'.]