Boolean (class)

Boolean data type is a has two values (usually denoted true (1) and false (0)). Variables can set as boolean in Lua using the false and true parameters. When testing for boolean values in conditions, if var == true then or if var == false then is not needed, but rather only if var then when testing for true and if not var then when testing for false. You can learn more about boolean values here: http://lua-users.org/wiki/LuaTypesTutorial