Mar-23-2021, 09:29 AM
Manually changing the index variable value in a for loop is not recommended. If you need a loop, set the limits outside of the loop and then enter the loop. If you have to change the index variable value inside the loop, then use a while loop and increment the index variable only in the case that you got a correct maximum value.