Programmer Guide/Command Reference/EXIT: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)
(No difference)

Revision as of 17:31, 18 November 2010

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