I have found that a table with nil and more values afterwards will lose all values after the nil value. And when getting the length of the table, it will only count the values before the nil value. Example:
mytable = {1, 2, nil, 3, 4}
print(mytable[2]) -- outputs 2
print(mytable[3]) -- outputs nil
print(mytable[4]) -- outputs nil
print(mytable[5]) -- outputs nil
print(#mytable) -- outputs 2
Is there any way to get around this and still have the nil value in the table?
