Adding Control Statements
Control statements
can make your macro flexible and powerful. For example, if you want the
macro to...
· perform
some action only if some condition is true or false, use an IF statement
· perform
some action a set number of times, use a DO-ENDDO
loop
· repeat
a block of commands as long as some condition is true, use a WHILE- ENDWHILE loop.
· start
another macro from within your macro, use CALL and RETURN
More
about Control Statements