i've got a question.
is there any difference in writing _, ?
as example
1
2
2
usgn = { "2422", "2552", "3521"} for usgnid in usgn do
1
for _, usgnId in usgn do
usgn = { "2422", "2552", "3521"} for usgnid in usgn do
for _, usgnId in usgn do
pairs(), so I don't know if that even works or there is any difference.
pairs(<table>), it iterates through the keys and the corresponding values for each element in the table. You are both able to get the key and value. But, technically, you don't have to get both at the same time. You may only want to get the key value, having no need for the value:
t = {2, 2, 2} for k in pairs(t) do 	print(k) end
_is a normal variable name character in Lua. Any of [0-9A-Za-z_] are legal variable characters.
-- One for k,v in pairs(table) do print(k,v) end
-- Two for _,v in pairs(table) do print(_,v) end
-- Three for _key,v in pairs(table) do print(_key,v) end