--setTimer(outputChatBox, time, how many times to repeat(use 0 for infinite), "And the string you want to output")
--like this:
setTimer(outputChatBox, 1000, 1, "String")
--it outputs String on the chatBox after 1 sec
table1 = {
[1] = {"This is the first row"},
[2] = {"This is the second row"}
}
for k, v in ipairs(table1) do
outputChatBox("This is the row's index: "..k..", and this is the value of that row: "..v )
end
it should output on the chat box:"
This is the row's index: 1, and this is the value of that row: This is the first row
This is the row's index: 2, and this is the value of that row: This is the second row
"
It is a loop through a table
"for" every "k" (key/index) and ", v" (value) "in ipairs(tableName)" (valid k and v on the same row of the table tableName) "do" something