For loops going backwards with subtraction?
Asked by
3 years ago Edited 3 years ago
I can't help but wonder if for loops can go backwards. Let me show an example with my code here.
05 | part.Position + = Vector 3. new(x, y, z) |
I figured that if this for loop reaches its end/max value, it will stop and the while loop will call the next function and the for loop will go backwards by subtracting. Is this true? To be specific here, I thought for loops could only go forwards, because when I remove the second function call "sum(-1, 0, 0)", the for loop will keep going non-stop. I don't get it, I need to understand how this works. And sorry, I'm new to programming.