Difference between pairs and ipairs

Whats the difference between for I,v in pairs, and ipairs?

The i in ipairs stands for integer. It’s the difference between iterating over an array and a dictionary. ipairs iterates over an array in order.

3 Likes