###Keyword###
Exit

###Description###
Terminates the script.

###Syntax###
<b>Exit</b> [return code]


###Parameters###
@@ParamTable@@
return code
	[optional] Integer that sets the script's return code.  This code can be used by Windows or the DOS variable %ERRORLEVEL%. The default is 0. Scripts normally set an errorlevel of 0 if the script executed properly; error levels 1 and above typically indicate that the script did not execute properly.
@@End@@


###Remarks###
The parameter, if included, can be enclosed in parentheses.  Thus, the following are equivalent:  <b>Exit</b>, <b>Exit 0</b>, and<b> Exit(0)</b>.  However, <b>Exit()</b> is invalid.

The code can be retrieved in a Func OnAutoItExit() by @EXITCODE.


###Related###
<a href="ExitLoop.htm">ExitLoop</a>, <a href="FuncOnAutoItExit.htm">Func OnAutoItExit ()</a>


###Example###
@@IncludeExample@@
