- Joined
- Nov 17, 2010
- Messages
- 6,796
- Solutions
- 581
- Reaction score
- 5,359
Alright.. so basically a quick question.
How do I do the thing I'm trying to do? xD
I want to use
But no matter what I try, it can't find what I'm looking for..
presumably because
I'm just stuck.. xD
How do I do the thing I'm trying to do? xD
I want to use
lists
to print 1,3,5,7But no matter what I try, it can't find what I'm looking for..
presumably because
lists[n]
is making it look somewhere else.I'm just stuck.. xD
Lua:
local config = {
[1111] = {
[1] = {
[1] = {
list1 = {{1, 11}, {2, 22}},
list2 = {{3, 33}, {4, 44}},
list3 = {{5, 55}, {6, 66}},
list4 = {{7, 77}, {8, 88}}
},
[2] = {},
[3] = {},
[4] = {}
}
},
}
local lists = {list1, list2, list3, list4}
for n = 1, 4 do
print(config[1111][1][1].lists[n][1])
end