Open Object Rexx™: Reference
Prev |  | Next

# Appendix A. Using DO and LOOP

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
    a=a+2
    Say "Smile!"
    End

Prev | Home | Next
Interpretation of and Deviation from the WSH Specification |  | Repetitive Loops