What's the difference between for _,v and for i,v?
Actually, there's no major difference. When you use a _ (underscore) you're actually just removing the index (or i as most people define it). The variable(s) within a for loop can be defined as anything.
Examples
For example, I could do:
1 | local myTestTable = { "Hello World!" } ; |
2 | for index, value in pairs (myTestTable) do |
That's equivalent to doing:
1 | local myTestTable = { "Hello World!" } ; |
2 | for i,v in pairs (myTestTable) do |
Conclusion
Basically name the variables in your loops the way you'd like to name them. Back to ,v if you know you're not going to use the index (i) then some developers will just put an underscore (). When they put that underscore they know they won't be using the index and it's used to prevent the defining of another variable.
I hope I answered any questions or concerns you may have had :)