Repeat steps BREAK - < for_break > ... [Pro]
Repeat steps BREAK |
||||||||||||||||||||||||||||||||
This command breaks a "for" loop execution and cause that the macro continues execution after "for_end" command of the broken "for" loop. See also "for" command. |
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
Example (Macro Steps):
|
||||||||||||||||||||||||||||||||
|
Example (Plain Text):
<#> This macro shows how to use "for" loop.
<#> There are two embedded "for" loops.
<#>
<cmds>
<for>("vX=1","vX < 5","1")
<for>("vY=1","vY < 50","1")
<msg>(-100,-100,"Counters [x,y] = [%vX%,%vY%]
Press 'F10' to break the y-loop.","For Counters",0,0,0)
<me_error_nodisplay> <waitfor>("KEY","PRESS","<F10>",1,0)<me_error_clear><me_error_display>
<if_key>("<F10>","DOWN")
<for_break>
<endif>
<for_end>
<for_end>