hi,
I've searched for a few hours in vain here and on the web but I fail to pick the proper keywords to find the answer for my question.
Lua Code:
table = {
[1] = "One",
[2] = "Two",
[3] = "Three",
[4] = "Four",
[5] = "Five",
}
for i=1, 3 do
table[i] = DEFAULT_CHAT_FRAME:AddMessage("test"..tostring(i))
end
will print:
test1
test2
test3
but what if I want to print:
test1
test2
test4
test5
how to skip a value?
or pick only a few that are not consecutive?
like for:
test2
test5