INTERPRET

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

INTERPRET

INTERPRET [ cmdVar=ICMD resVar=IRES [ historyTable ]]

Interpret the contents of a variable as a command. The command returns 0; on success, 1;errorMessage if there was a parsing error, otherwise it returns 2;.

cmdVar
The id of a variable. If neither cmdVar nor resVar are specified, the variable ICMD is used.
resVar
The id of a variable to store the executed command's result in. If neither cmdVar nor resVar are specified, the variable IRES is used.
historyTable
A simple table to which the command should be appended. If the command is already in the history, moved to the end.

Navigation menu

Personal tools