Hi, How can I iterate over the nested table this is my code
each element of inner table has 4 properties when I run this code I get only three elements with some weird characters.
output:
00:01:23.178 1 table: 0E244440
00:01:23.178 2 table: 0E244328
00:01:23.178 3 table: 0E244350
code:
local table={
{
name=“platform”,
id=p,
x=100,
y=200,
},
{
name=“RedGem”,
id=r,
x=100,
y=200
},
{
name=“bgem”,
id=b,
x=100,
y=200
}
}
for k,v in pairs(table) do
print(k,v) – print(k,table[v])
end