User Tools

Site Tools


The -exit- Command

Suppose you are seven levels deep in -do-s. That is, you have encountered seven nested -do- statements on the way to the present unit. The statement β€œexit 2” will take you out two levels. The next statement to be executed is the statement which follows the sixth -do-. A blank -exit-command (blank tag) takes you immediately to the statement following the first -do-. (Such operations are occasionally useful.) Notice that encountering a unit command at the end of a done subroutine will cause an automatic β€œexit 1”. It is superfluous to put β€œexit 1” at the end of a unit, since this effect is automatic.

plato/tutor/exit_command.txt Β· Last modified: 2023/08/05 18:55 by Site Administrator