Engine:CCMD lua.run: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{dev/uiccmd}} Runs a Lua statement in a Lua runtime. <kua>lua run 'print("fred")'</kua> == Arguments == * script - the verbatim text of the Lua statement or statements to be run == Associations == * Is by default placed in the 'lua' context. == Details == Runs the first argument as Lua code in a Lua runtime. == Examples == === Default values === <kua> lua run "print(1 + 2)" </kua> : Prints '3'. == Notes == *") |
|||
| Line 10: | Line 10: | ||
== Details == | == Details == | ||
Runs the first argument as Lua code in a Lua runtime. | Runs the first argument as a single Lua code block in a Lua runtime. | ||
== Examples == | == Examples == | ||
Revision as of 20:18, 18 October 2023
Runs a Lua statement in a Lua runtime.
lua run 'print("fred")'
Arguments
- script - the verbatim text of the Lua statement or statements to be run
Associations
- Is by default placed in the 'lua' context.
Details
Runs the first argument as a single Lua code block in a Lua runtime.
Examples
Default values
lua run "print(1 + 2)"
- Prints '3'.