Difference between revisions of "NXSL:exit"

228 bytes added ,  18:30, 22 October 2014
no edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
Exit from script
Exit from script. This function never returns.




== Syntax ==
== Syntax ==


exit;
exit(''code'');




== Parameters ==
== Parameters ==


None.
{| class="wikitable"
|-
| ''code'' || Exit code (optional, 0 will be used by default).
|}




Line 20: Line 23:
== Examples ==
== Examples ==


  exit;
<syntaxhighlight lang="c">
  exit();   // exit with code 0
exit(42);  // exit with code 42
</syntaxhighlight>
683

edits