Board Thread:Lua Help/@comment-25176295-20141015130712

I am having issues accessing a table element via a variable. see http://finders-keep.wikia.com/wiki/Module:Item (line 29) which is: thisrow[rarity] = thisrow[rarity]..itemdat[k].name

Now, thisrow is a table with 6 elements (set by for i=1, 6 do thisrow[i] = "\n|" end), and I am trying to access, say, thisrow[2] (as if rarity = tonumber(itemdat[k].rarity) - 1 and itemdat[k].rarity ="1") but keep getting script error attempt to concatenate field '?' (a nil value).

Logically, this should work, but need some help with this if possible. 