When I write loops that go through many variables I usually use:
I was discussing with a friend of mine and she typically uses
What is the difference between these two? When would you prefer var of varlist to in (and vice versa) when looping through unabbreviated variables?
Code:
foreach var of varlist varname1 varname2 varname3 {
Code:
foreach var in varname1 varname2 varname3 {
Comment