lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

You seem to misunderstand - I am not using table.getn. I'm almost 100% sure I was trying to use table.foreach, and in this particular circumstance, it wasn't iterating over every element, but was stopping when it reached the first nil.

table.foreach (or table.foreachi for that matter) can never report a nil value, because nil values are not present in a table.