Description
Terminates the process of a script.
Synopsis
exit [returncode]
Option
Program completion code. Specify it between 0 and 128. If omitted, 0 is assumed.
Example
If the content of variable rc is a non-zero value, exits abnormally with that value being used as the completion code.
if {$rc != 0} { exit $rc }