<< Click to Display Table of Contents >> Navigation: 3. Script Language > Miscellaneous commands > Mathematical and algorithmic operations |
MiniRobotLanguage (MRL)
END. Command
Ends a script
Intention
End script execution immediately and optionally set a return-code.
If given a Parameter, and called in "Exemode", End will set a return code for a compiled executable. If given a parameter not encapsuled in an executable, END. will set the Returncode like SEC. only for the "MR01.exe".
Syntax
END.[P1]
Parameter Explanation
P1 - NUM containing the return-value (Error-Code) for the calling application.
Example
' Simply ends a Script
END.
' Ends a Script and gives a return-code of 10
' for compiled executables
END.10
Remarks
To set a Return code without ending the script, use SEC. (Set Exit Code).
If no Return code is given, the return code is zero (0) or the last code that was given to an SEC.-command.
Use the ENR. (End Return) command if you plan to call the script from another script using JNF.
Limitations:
-
See also:
• SRV. - Set Return Value (Executable)