Engine:Console commands: Difference between revisions

Line 9: Line 9:


=== Key ===
=== Key ===
* 'Global commands' - Short-hand for commands placed in the 'global' context.
* 'Global commands' - Used below, is short-hand for commands placed in the 'global' context.
* 'Global variables' - Short-hand for variables placed in the 'global' context.
* 'Global variables' - Used below, is short-hand for variables placed in the 'global' context.
* 'Default command' - Command run by default if no command or alias exists for that name, in the current or inherted context. Examples:
* 'Default command' - Command run by default if no command or alias exists for that name, in the current or inherted context. Examples:
** <kua>var bob fred; bob</kua> Prints 'fred'. The 'var' command is used to 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 to 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.