Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you write new values in a table?

Asked by
Zerio920 285 Moderation Voter
10 years ago

The Wiki says I can use

for index, value in ipairs(myArray) do
    print(index, '=', value)
end

To make new values in a table. I don't understand what this means though, can anyone explain? More specifically, what do the "index", "value", and "print" parts do?

Answer this question