EXIT

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 14:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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