Appendix A. Using DO and LOOP

Table of Contents
Simple DO Group
Repetitive Loops
Repetitive Loops over Collections
Conditional Phrases (WHILE and UNTIL)
LABEL Phrase
Conceptual Model of Loops

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

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:

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