Personal tools
You are here: Home Documentation Users Guide Commands Reference EXIT
Document Actions

EXIT

/LOOP /SCRIPT /PROMPT /PROGRAM /COMMAND /CYCLE

Without a qualifier, when issued interactively and without a qualifier EXIT terminates program Ferret. When executed within a command file, EXIT terminates the execution of the command file and returns control to the level in Ferret that executed the file (the user or another command file).

"QUIT" in a command file is an alias for EXIT without a qualifier. It will exit the current script, or the program if you are at the Ferret prompt.

Command qualifiers for EXIT:

EXIT/LOOP

When executed from within a REPEAT loop, Ferret will stop execution of that loop and return to the level in Ferret which executed the loop.

EXIT/CYCLE

When executed from within a REPEAT loop, Ferret will skip the remaining commands in the loop and continue at the start of the next repetition of the loop.

EXIT/SCRIPT

When executed from within a script, this command will terminate the execution of that script and return control to the level in Ferret which executed the script (either the user or another command file).

EXIT/PROMPT

When executed at any point, either in a script or loop, this command will immediately terminate execution and Ferret will return to the"yes?" prompt and return control to the user.

EXIT/PROGRAM

EXIT/COMMAND_FILE

When executed from within a command file EXIT/COMMAND_FILE or EXIT/PROGRAM forces an immediate exit from Ferret without returning control to the user or another command file.



Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: