m
Move page script moved page API pairs to WoW:API pairs without leaving a redirect
(a string can not be called true! and it wasn't a boolean.) |
m (Move page script moved page API pairs to WoW:API pairs without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowlua}} | |||
Returns an iterator triple that allows for loops to iterate over all key/value pairs in a table. | |||
iteratorFunc, table, startState = pairs(table); | |||
== Example == | |||
local random_array = { mug = "coffee", [42] = "universe", testboolean = false } | local random_array = { mug = "coffee", [42] = "universe", testboolean = false } | ||
| Line 24: | Line 23: | ||
mug : coffee | mug : coffee | ||
42 : universe | 42 : universe | ||
testboolean : false | |||
would be output to the chat window. | would be output to the chat window. | ||