Quantcast
WoWInterface - View Single Post - Lua dynamic class name possible ?
View Single Post
03-03-15, 06:07 PM   #2
Banknorris
A Chromatic Dragonspawn
 
Banknorris's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 153
You need a simpler example

local a = {} --a is a table
a.a = 1
a.b = 2
c = "a"
print(a[c]) --should print 1
c = "b"
print(a[c]) --should print 2
  Reply With Quote