You heard the title, how would I get the last value of a table? Now I’m not talking about any normal array, that starts at 1, what if the indexes are offset? For example, how would I get the last value of this table.
local _table = {
[6] = "Hey",
[7] = "Hi",
[8] = "Hello",
}
I heard it was possible using next
, but I don’t remember how.