I'm moving my c# program over to Powershell, and I'm stuck with trying to convert my for loop I had working. I don't know quiet how to word this, but I require multiple counter variables within my for loop, and I haven't been able to figure out how to do it. I also couldn't find any references online, so I don't know if this is a limitation of Powershell or not.
So, here's what I mean, in c# I have:
for (int k = 1, file = 1, perFile = 0; k <= splitGroups; k++, file++, perFile += dtotalPerFile){
}
of course the variable names/types don't matter, so my question is how can I reconstruct this into Powershell? Is it possible to use a For loop? or do I need to move to perhaps a do while to achieve the same results.
forloop you're describing does absolutely nothing?