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

Table Info Getter?

Asked by
Andorks 23
8 years ago

I want to scroll through all the items in a table. How would I do so?

1 answer

Log in to vote
0
Answered by
Tigerism 220 Moderation Voter
8 years ago

Simplest way:

local table1 = {"test","test2")

for i,v in pairs(table1) do
    print(v)
end

Counting table elements:

local table1 = {"test","test2")

print(#table1)
0
I know you can do this. But is there a way you can do so, kind of like how it does #table1 Andorks 23 — 8y
0
I don't understand what you're asking for Tigerism 220 — 8y
0
Nevermind, Lol. Andorks 23 — 8y
Ad

Answer this question