Exit


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

Syntax

Exit( sMsg=nil )

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

bullet.gif    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


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.