forlang.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
END DO
                                             Up Contents Index Back
─────END DO─────────────────────────────────────────────────────────────────
 
     Action
 
     Terminates a DO or DO WHILE loop.
 
     Syntax
 
     END DO
 
     Remarks
 
     An END DO statement must match every DO or DO WHILE statement that
     does not contain a label reference.
 
     An END DO statement may terminate only one DO or DO WHILE statement.
 
     Examples
 
     The following examples produce the same output.
 
           DO ivar = 1, 10
              PRINT ivar
           END DO
 
           ivar = 0
           DO WHILE (ivar .LT. 10)
              ivar = ivar + 1
              PRINT ivar
           END DO
                                    -♦-