nil
- type of the value nil whose main property is to be different from any other value. It usually represents the absence of a useful value.boolean
- values false and true (both nil and false make a condition false; any other value makes it true)number
- real numbersstring
- arrays of characters (strings may contain any 8-bit character, including embedded zeros)function
- Lua functionsuserdata
- can hold arbitrary C data (corresponds to a block of raw memory)thread
- independent threads of execution used to implement coroutinestable
- arrays that can hold values of any type except nil
nil
.value=table[x]
). The first value in a table is at position 1 (and not 0 as for C arrays).