Thread: Table Iteration
View Single Post
03-30-13, 02:05 AM   #1
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
Table Iteration

Good Morning,

I was curious about how I may go about ensuring a table of mine is iterated over in a certain order (simply, top to bottom.)

I tried to use the ipairs() function for my loop, and it didn't work; and using pairs(), it reads my table in a rather erratic fashion.

My table utilizes the key and value as information, so I can't use the key as an index. The next() function seems to produce the same results as pairs().

Thanks!
  Reply With Quote