I am working on some code and I am trying to modify the end integer of a loop within said loop (as said in the title)
So it would look like this
dim x as integer
For i=0 to x
if (some conditions) then
x=x+1
End if
Next
However it doesn't seem to work, it looks like the loop is working with a static value of x and not a dynamic value.
Is there a way to update the end integer of the loop without using an exit for
and starting the loop all over?
Thanks