-
Posted by android on Fri, 30 Sep 2011 18:24:08
I want to compare some class, talent pairs so I set up an array in a table.
tbl = { { "warlock", 1 }, { "warrior", 3 }, { "shaman", 2 }, } local c = "shaman" local t = 2
I want to do a compare like:
if c == tbl[i].??? and t == tbl[i].??? then
-
Posted by jnwhiteh on Fri, 30 Sep 2011 18:29:23
I want to compare some class, talent pairs so I set up an array in a table.
tbl = { { "warlock", 1 }, { "warrior", 3 }, { "shaman", 2 }, } local c = "shaman" local t = 2
I want to do a compare like:
if c == tbl[i].??? and t == tbl[i].??? then
if c == tbl[i][1] and t == tbl[i][2]