Sheltran - FOR construct


Form:

      FOR <loop control>
         <statement>...
    [    XFOR 
         <statement>...  ] 
      CFOR

Note:

The rules for writing <loop control> are identical to those for the FORTRAN DO-loop.

Actions:

The actions follow the FORTRAN DO-loop control actions. At any point in the FOR-loop an XFOR statement may be inserted. This statement transfers control to the statement following CFOR.

Example:

 
      FOR I=1,80
         LINE(I)=' ' 
      CFOR

Programming GIPSY