Hi, if i were to set a key for a table which position would that key be placed in?. would be placed in the first position, last or a random one?. for example.
local myTable = {} myTable[myKey] = " this is a key"
and can i set a key without giving it a value such as
local myTable = {} myTable[myKey]
Yes, it can, but you have to set it to "nil". Take this, as an example:
local table = {} table["Key01"] = nil; --^ The Key01 is the key, the value is stored in a "pair" of the Key01 and nil.