|
Hi Alexandr,I think your problem is, that your table is actually empty: If you don't assign any value to your tables keys, their value is simlpy nil.
Try out a = {a = 5,b,c,d} then print (a.a) would be 5 print (a.b) would be nil, as well as print (a.f) Regards, Eva Alexandr Leykin wrote:
Hello! How to know to be a key in lua table? Without use pairs/ipairs/next? a = {a,b,c,d} a.a => nil, but key "a" present in table! a.f => nil, but key "f" not in table! Than differ a.a and a.f??? (a.a - key in the table a, a.f - not) Thanks. -- Alexandr