49
edits
(Created page with "{{dev/uiccmd}} Load and run script file. Run a named script file. Name must include extension. <kua>run startup.cfg</kua> == Arguments == * name - The name of the script file to load and run. == Associations == * Is by default placed in the 'global' context. == Details == == Examples == === Default values === For a script file named 'startup.cfg' and looks like: <kua> echo fred lua print(1 + 3) alias bob fred var fred james bob </kua> * Try to load a non-existent fil...") |
|||
| Line 33: | Line 33: | ||
'fred' is 'james' | 'fred' is 'james' | ||
</kua> | </kua> | ||
: In this case: echos 'fred', runs Lua | : In this case: echos 'fred' to console, runs a Lua statement that adds '1 + 3' and prints the result, creates an alias 'bob', creates 'fred' variable that the alias 'bob' will show the value of, runs the 'bob' alias that effectively prints the value of 'fred' that is 'james'. | ||
== Notes == | == Notes == | ||
* | * | ||