< Programming Concepts | UserGuide | Variables and Values >


Comments

Code is not always self describing. Actually, in most cases, it is not. Programmers can comment code to clearify what is happening. Comments do not influence the execution of the code at all. Comments exists only for us humans to understand what the code is doing and is irrelevant for the execution. Comments start in Lua with a double minus and end at the end of line:
  -- a comment - the computer won't care about this

A multiline comment looks like this:

  --[[ this comment
   may cover several lines
   until it ends ]]