Engine:Console commands: Difference between revisions

Line 9: Line 9:


=== Key ===
=== Key ===
* 'Global commands' and 'Global variables' - Used below, are short-hand for commands placed in the 'global' context.
* 'Global commands' and 'Global variables' - Short-hand for commands placed in the 'global' context.
* 'Default command' - Is run by default, if its context is addressed by name or is the current context. Examples:
* 'Default command' - Is run by default, if its context is addressed by name or is the current context. Examples:
** <kua>var bob fred; bob</kua> Prints 'fred'. The 'var' command is used ot create a new variable, then the next statement uses the 'global' default 'varedit' command to print the value of 'bob'. 'bob' is not a command but an existing variable.
** <kua>var bob fred; bob</kua> Prints 'fred'. The 'var' command is used ot create a new variable, then the next statement uses the 'global' default 'varedit' command to print the value of 'bob'. 'bob' is not a command but an existing variable.