next up previous contents index
Next: Looping while a condition Up: Looping until a condition Previous: Looping until a condition

Other remarks

  1. The REPEAT:  and UNTIL:  commands may not be used during one-line FOR:  and one-line IF:  statements.
  2. The while ...wend construction is similar to the repeat ...until construction, except that the test for processing the enclosed body of commands is at the start rather than the end of the loop. Therefore the body of commands enclosed in a while ...wend loop might not be processed, whereas the body of commands enclosed in a repeat ...until loop are always processed at least once.
  3. There are no limits to the number of active repeat ...until loops, subject to memory limitations.
  4. The current status of repeat ...until constructions are cleared whenever the RESTART:  command is issued, but not when a CLEAR:  command is issued.
  5. For interactive work, when you issue a REPEAT:  command, the program simply copies your further inputs (without obeying any commands) until you input an UNTIL:  command to mark the end of the loop. Thereafter the loop is processed in the usual way. The interactive REPEAT: -UNTIL:  construction causes the copying of command lines to a temporary file. Every line is copied as an original, without any parsing: errors in the command syntax may be reported, but the process will continue. During such interactive work, the following prompt  is used:

    BD/ tex2html_wrap_inline33712

    to indicate to you that the program is awaiting an UNTIL:  statement before processing your inputs.

       



David Wooff
Wed Oct 21 15:14:31 BST 1998