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

What is the difference between pairs and ipairs?

Asked by
bloxxyz 274 Moderation Voter
10 years ago

I know they are both generic loops, I believe? However, what is the difference? Maybe an example? Many thanks!

1 answer

Log in to vote
1
Answered by
Destrings 406 Moderation Voter
10 years ago

ipairs only iterates over numerical index, pairs iterates over all the table.

Ad

Answer this question