<< Click to Display Table of Contents >> RETURN |
|
RETURN returns from a command file or function/procedure (i.e., does not execute the remainder of the file). It will return to any 'parent' command file calling that particular 'child' command file (or to the command prompt if there are no 'mother' command files). If you wish to return from all command files at once, use the STOP command instead.
RETURN ; //return from command file
If RETURN is used to return from a FUNCTION (that is, if the function returns one or more variables), it must use the following syntax:
RETURN expression ;
If you wish to comment out a section of the command file, you may use // to comment out a single line, or /* followed by */ to comment out an arbitrary section (for instance spanning multiple lines).