Before revision: -- Single line comment --[[ Multi-line comment --]] The factorial function is implemented as a function in this example: function factorial(n) local x = 1 for i = 2, n do x = x * i end return x end Control flow Lua has one type of conditional test: if then end with optional else and elseif then execution control constructs.
After revision: -- Single line comment --[[ Multi-line comment --]] The factorial function is implemented in this example: function factorial(n) local x = 1 for i = 2, n do x = x * i end return x end Control flow Lua has one type of conditional test: if then end with optional else and elseif then execution control constructs.