I've never understood what the following statement ment:
Code:
local _, class = UnitClass('player')
local _, class = UnitClass('player')
Global_options = {'a','b','c'}
WARRIOR_options = {'d','e','f'}
ROGUE_options = {'g','h','i'}
for k,v in getglobal(class .. '_options') do
table.insert(Global_options, v)
end
I understand what it does, it gets the global called class and inserts it in the Global_option table with v as it's key. Wht I don't understand is the k and v statements. What are they? Do they have a numerical value? What does the "in" do? I really don't understand anything at all