EXIT







Syntax




   EXIT


Description




The EXIT command, when encountered in a procedure, acts just like the end of the procedure. When entered from the keyboard, it brings the program to a halt.



Examples




Let FILEA, FILEB, and FILEC be the following procedures.

   (FILEA)          (FILEB)           (FILEC)
    A1;              B1;               C1;
    A2;              START FILEC;      C2;
    A3;              B2;               EXIT;
    START FILEB;     B3;               C3;
    A4;              STOP;
    A5;              B4;
The command

   START FILEA
is equivalent to the sequence of commands

   (A1)
   (A2)
   (A3)
   (B1)
   (C1)
   (C2)
   (B2)
   (B3)


Notes




The EXIT and STOP commands are used mostly for debugging procedures. (When debugging a procedure, it is not always necessary to read all the way through it.)



Related Topics




  1. About Procedures
  2. The Percy Help System