Product SiteDocumentation Site

Appendix A. Using DO and LOOP

This appendix provides you with additional information about the DO and LOOP keyword instructions.

A.1. Simple DO Group

If you specify neither repetitor nor conditional, the DO construct only groups a number of instructions together. They are processed once. For example:

Example A.1. Simple DO block

/* The two instructions between DO and END are both  */
/* processed if A has the value "3".                 */
If a=3 then Do
   a=a+2
   Say "Smile!"
End