diff options
Diffstat (limited to 'examples/scripting/lua/script.lua')
| -rw-r--r-- | examples/scripting/lua/script.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/scripting/lua/script.lua b/examples/scripting/lua/script.lua new file mode 100644 index 0000000..09ff16d --- /dev/null +++ b/examples/scripting/lua/script.lua @@ -0,0 +1,17 @@ +print('hello from lua (script file)') + +zenc_hello('test2') + +local tbl = { + ["something"] = "good", + [2] = 3 +} + +for k,v in pairs(tbl) do + print("Key: "..k.." | Val: "..v) +end + +local str = "4" +print(tonumber(str)) + +print(os.date("today is %A, in %B")) |
