FOR

##
FOR

            [SIC\]FOR Loop_Variable n1 n2 n3 TO n4 BY n5 n6 TO n7
            [SIC\]FOR Loop_Variable /IN List_Variable
            [SIC\]FOR /WHILE Logical_Expression

        Open  a  FOR-NEXT  loop  to be executed for real values in the list (FOR
        Variable), or any values (including strings) given in the /IN option,
         or until a logical expression becomes false (FOR /WHILE).

        Up to 9 loops may be nested in any way. The loop can be  exited  at  any
        time with the command BREAK (see HELP BREAK for details).

        If  the  loop is entered interactively at the prompt, the last character
        of the prompt becomes a ':' instead of '>', and all subsequent  commands
        typed in until NEXT are the body of the loop.

        * Indexed loops: FOR Loop_Variable n1 n2 n3 TO n4 BY n5 n6 TO n7
          See HELP FOR Indexed

        * Generalized loops: FOR Loop_Variable /IN List
          See HELP FOR /IN

        * Conditional loops: FOR /WHILE Logical_Expression
          See HELP FOR /WHILE

        The  Loopriable is the name of a SIC variable created by the FOR command
        and must not be an existing variable name.

Subsections

- FOR Indexed
- FOR /IN
- FOR /WHILE