WoW:API pairs: Difference between revisions

a string can not be called true! and it wasn't a boolean.
m (Changed layout slightly, corrected spelling)
(a string can not be called true! and it wasn't a boolean.)
Line 5: Line 5:
Example:
Example:


  local random_array = { mug = "coffee", [42] = "universe", true = "false" }
  local random_array = { mug = "coffee", [42] = "universe", testboolean = false }
   
   
  for index,value in pairs(random_array) do  
  for index,value in pairs(random_array) do  
Anonymous user