lua for beginners code example
Example 1: lua for loop
-- For K,V in table
for k,v in pairs(tbl) do
print(k)
print(v)
end
-- For i=0, num
for i=0, num do
print(i)
end
Example 2: how to say hi in lua
print("hello")
Example 3: how to lua
-- Well, first, you could make a variable
local variable = true
-- If you want to print something in the output
print("Hello Output!")
-- Finally, the rest is up to you.