Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REPEAT
#2
Straight from the help file.


Syntax
rep [n]
(tab) statement
(tab) ...
...



Can be single line:

rep([n]) statement ...



Parts
n - number of times to repeat.

statements - one or more statements (commands).



Remarks
Repeatedly executes statements n times. If n is omitted, executes forever.



Use break to exit loop. Use continue to skip following statements.



rep can be in other block (if, rep, ...).



See also : for, foreach.

Examples
Macro
Code:
Copy      Help
rep 10
,bee
,1

rep(10) bee; 1

rep
,i+1
,if(i>10) break



Macro
Code:
Copy      Help
rep 10
,int w1=act(win("MySpace.com - - Microsoft Internet Explorer" "IEFrame"))
,lef 280 752 w1
,lef 29 155 win("" "Internet Explorer_Server")
,act w1
,lef 305 750 w1
,wait 5.0


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)