Nil

Nil is a special value denoting the absence of a value, and has the type nil. It is often returned by functions to indicate an error condition, usually along with an error message as the second return value. Such functions include loadfile and loadstring. It is good practice to check if a variable is nil before using it in cases where nil is a possible value, to prevent errors such as "attempt to call nil" or "attempt to index ? (a nil value)", which will happen when a nil value is used regardless. In tables, setting the value of a key to nil will delete the key. Attempting to use nil as a key in a table produces an error.