Tutorial:Keywords

What are keywords?
Keywords are special words that cannot be used as variable names or function names, and control the flow of the script.

What are some keywords?
The keywords in lua are: List is not complete.
 * if
 * else
 * elseif
 * export
 * for
 * while
 * break
 * continue
 * repeat
 * until
 * next
 * not
 * true
 * false
 * then
 * end
 * function
 * local
 * or
 * and
 * do
 * self

Keywords in action
An example of an if statement: An example of a for loop: An example of a do block: An example of a while loop: An example of using and, or, and not: This code produces an error: because the variable name is a keyword.