Reverse For Loop
In This Article
Inverts the incrementing for loop to decrementing, or vice versa.
#Availability
From the context menus or via shortcuts:
- when the edit cursor or caret is on the for keyword.
#Example
│for (int i = 0; i <= 10; i++)
│For i = 0 To 10
Result:
│for (int i = 10; i >= 0; i--)
│For i = 10 To 0 Step -1