Difference between revisions of "NXSL:exit"
Jump to navigation
Jump to search
Tomas Kirnak (talk | contribs) |
m (Text replacement - "^" to "{{deprecated}}") |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | {{deprecated}}__NOTOC__ | ||
Exit from script | Exit from script. This function never returns. | ||
== Syntax == | == Syntax == | ||
exit; | exit(''code''); | ||
== Parameters == | == Parameters == | ||
{| 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> |
Latest revision as of 16:13, 13 September 2022
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide) |
Exit from script. This function never returns.
Syntax
exit(code);
Parameters
code | Exit code (optional, 0 will be used by default). |
Return Value
None.
Examples
exit(); // exit with code 0
exit(42); // exit with code 42