The exit command terminates execution of the commands, returning to menu with a numeric return code specified by the expression. A nonzero return code from menufile commands or menu commands causes menu to terminate while a nonzero return code from choice commands causes menu to pause before clearing the screen.
The built-in exit command is only available when menu has the built-in menu commands enabled.
if ! file rptfile
echo "File ":rptfile:" does not exist."