Engine:CCMD lua.lua edit: Difference between revisions

Line 18: Line 18:


; Line by line processing:
; Line by line processing:
In the 'lua' context all of the script syntax rules still apply. The 'lua_edit' default command will only be run when a statement is not another context, or a command, variable, or alias. Script in the 'lua' context is still run statement by statement as script in the engine.  
The 'lua_edit' default command will only be run when a statement is not another context, or a command, variable, or alias. Script in the 'lua' context is still run statement by statement, as script in the engine.  


This means that for example:
For example:
<kua>
<kua>
context lua
context lua
print(1+2); exit
print(1+2); exit
</kua>
</kua>
Would be run as:
Is actually:
<kua>
<kua>
context lua
context lua