
hey, it's not important IF other languages have it, only if it makes sense to have it (and for cross language comparisons, and easy porting it's nice to have it)
Code: Select all
For i=Random(10, 5) To 0 Step 0
Debug i; will not happen
i-Random(2, 1)
Next
Code: Select all
For i = 10 To 1 Step -1
i +1 ;undo loop code
i -1 ;anything
Debug i
Next
Code: Select all
If ddirection=0
step_=1
from_=0
to_=10
Else
step_=direction
from_=current+direction
If direction=-1
to_=0
Else
to_=10
EndIf
EndIf
For i=from_ To to_ Step step_
; from 0 to 10 with step +1 if direction is 0, from current+1 to 10 with step 1 if direction is 1, and current-1 to 0 with step -1 if direction is -1.