EXIT

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 17:31, 18 November 2010 by Admin (talk | contribs) (1 revision: Initial import)
Jump to navigationJump to search

EXIT

EXIT 0

Terminate the shell immediately (no result assignment possible).

EXIT –level result_expression

Return to the first macro with a local variable #onexitall that is not empty.

Pre S_TOOLS-STx 3.9: this function returns to macro with variable #EXITLEVEL equals level and assign result_expression to variable RESULT.

EXIT level result_expression

Return from level Macros (e.g. 1 = returns to the calling macro) and assign result_expression to the shell variable RESULT.

EXIT

Returns to the calling macro (1 level). The variable RESULT is not set.

See the script exitlevels.sts for a working example.

Navigation menu

Personal tools