DatatypeToStr GetFileList

Exit


The Exit function terminates the script and, optionally, lists a message in the Script Messages window.

Syntax

Exit( sMsg=nil )

    IfsMsg is unspecified, it is considered nil and is unused. This syntax simply quietly leaves the script.

    IfsMsg is provided, the message is printed in the Script Messages window before exiting the script.

Remarks

The Exit function leaves the script immediately. You can use it anywhere in a script or in a function called by the script. In comparison, the Assert function tests an argument and exits the script only if the argument tests false.

Related Topics

Assert