The following For/Next loops fail to execute even once even though the <variable> is not outside the range of the loop.PB Manual wrote:The For : Next function is used to create a loop within a program with the given parameters. At each loop the <variable> value is increased by a 1, (or of the "Step value" if a Step value is specified) and when the <variable> value is above the <expression2> value, the loop stop.
Code: Select all
Debug "loop start"
For x = 1 To 3 Step -2
Debug "doesn't execute"
Next
Debug "loop over"
Debug "loop start"
For x = 3 To 1 Step 2
Debug "doesn't execute"
Next
Debug "loop over"
If this is the desired behavior the manual should at least be updated.