Engine:CCMD lua.lua edit: Difference between revisions

Line 25: Line 25:
</kua> Will write '1' and '1100' to the engine log/console.
</kua> Will write '1' and '1100' to the engine log/console.


This is similar to an interactive Lua console's '=' convenience command: <pre> = 100 </pre> In a Lua will output '100' in the console, after the command is run. Except here anytime return is used on the outer Lua chunk, values will be read and written to the 'log', and there is no special command here.
This is similar to an interactive Lua console's '=' convenience command like <code>=100</code>, where will output '100' in the console when '=' starts a console line, after the command is run.


== Examples ==
== Examples ==