View Single Post
05/30/14, 09:27 AM   #2
Stormknight
 
Stormknight's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 128
Tables are pretty awesome.

Something that often confuses new LUA coders - table entries start with an key/index of 1.

Lua Code:
  1. local newTable = {}
  2. table.insert(newTable,"First Line")
  3. d(newTable)

The contents of the table is a single entry, with a key of 1 (not zero, as you would expect with something like C++).
  Reply With Quote