SheetInfo = {}
SheetInfo.frameIndex =
{
[“capguy/walk/0001”] = 1,
[“capguy/walk/0002”] = 2,
[“capguy/walk/0003”] = 3,
[“capguy/walk/0004”] = 4,
[“capguy/walk/0005”] = 5,
[“capguy/walk/0006”] = 6,
[“capguy/walk/0007”] = 7,
[“capguy/walk/0008”] = 8,
[“city_background”] = 9,
[“capguy/walk/0010”] = 10,
}
How do I access the table above and print out “capguy/walk/0001” ?
I’ve tried
print(SheetInfo.frameIndex[1])
but not working.
*I know about key,value pairs and the code below prints all the keys but I just want to print out the first position. How do I?
for k,v in pairs(SheetInfo.frameIndex) do
print(k)
end