Einander, have you tried result with gw-basic?
Froggerprogger wrote:
A For-loop (with positive STEP) is processed in this way:
- check the value of the countervariable against the TO-variable's value
- if both are same, or countervariable < TO-variable then increase the countervariable by step
So if countervariable and TO-variable point to the same variable, e.g. 'i' then both are increased, and will always have the same result => endless loop
Exact. The point is that PB checks if variable < or = than TO-variable, if equal, then increment it.
It just do same that this in C:
1. Assign var = var
2. Check condition var<=var.
3. If true (just it is), then do the {} tasks, else go step 6.
4. Do var++
5. Go to step 2.
6. } End. Out of loop
This is how PB do a For-Next. Am i lying?