Comments

  • Similar to most programming languages
    • Lua has single line and block comments

Single Line Comments

  • starts with a double hyphen -- and runs to the end of the line

-- This and the following line are commented out -- if (a > b) then a = b end

Block Comments

  • Starts with --[[
  • runs until an ending ]]

--[[ if a < b then c = 0 d = a + b end ]]