Programmer Guide/Command Reference: Difference between revisions
From STX Wiki
Jump to navigationJump to search
Line 11: | Line 11: | ||
<splist | <splist | ||
parent= | parent=Programmer_Guide/Concepts/Conditional_Expressions | ||
sort=asc | sort=asc | ||
sortby=title | sortby=title |
Revision as of 19:26, 14 April 2011
The Command Reference documents all the commands available in the STx macro language. This is with the notable exception of the shell item commands, which are documented in the chapter Shell Items.
Each STx commands generates a result value (the return value of the command) and a completion code (to indicate success or error). The completion code is stored in the shell variables RC
(numerical error or warning code, 0 = success) and EMSG
(error msg according to value of RC
).
Notes:
- The most commands overwrites the variables
RC
andEMSG
always, but some commands (like IF, GOTO and most other control commands) overwritesRC/EMSG
only if an execution error occours. - Some commands uses the completion code also as return value.
- In contrast to commands, macros store their return value (generated with the EXIT command) in the variable
RESULT
and do not effect the variablesRC/EMSG
- The most commands overwrites the variables
Introductions
Programmer_Guide/Concepts/Conditional_Expressions has no subpages to list.
Commands (alphabetical list)
sort=asc has no subpages to list.