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

Other remarks

  1. If an error occurs in the definition of the equation used to generate the condition, the default action is for the value of the equation to be taken as FALSE.
  2. All commands are permitted during the processing of a standard if-then-else construction. However, certain commands are disallowed during processing of a one-line IF:  statement. These include

    1. other if-then-else constructions via the IF: , ELSE: , and ENDIF:  commands;
    2. looping via FOR: , END: , REPEAT: , UNTIL: , WHILE: , and WEND:  commands;
    3. channel closing via the REFRESH:  command.

  3. There are no limits to the number of active if ...else ...endif loops, subject to memory limitations.
  4. It is permitted to change channels, and so forth, via the M: , GOTO: , and RETURN:  commands.
  5. The current status of any if-then-else constructions are cleared whenever the RESTART:  command is issued, but not when a CLEAR:  command is issued.
  6. For interactive work, when you issue a standard IF:  command, the program simply copies your further inputs (without obeying any commands) until you input an ENDIF:  command to mark the end of the construction. Thereafter the commands are processed in the usual way. The interactive 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 ENDIF:  statement before processing your inputs.

         



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