49
edits
| Line 20: | Line 20: | ||
Creates a Lua function that sets and prints a variable and runs it from script, all from inside Lua. | Creates a Lua function that sets and prints a variable and runs it from script, all from inside Lua. | ||
<lua> | <lua> | ||
function | function fred(s) script 'bob ' + s + ';bob' end | ||
script "lua | script "lua fred('james')" | ||
</lua> | </lua> | ||
: Prints ' | : Prints 'james' | ||
== Notes == | == Notes == | ||
* | * | ||