STEP
FOR i = a TO b STEP s
Specifies the loop counter increment s
in a FOR loop.
The variable i
will be increased in every loop by amount
s
. s
can be a positive or negative number.
See FOR for more information.
Example 1: Positive step
for t = 1 to 10 step 2
print t
next
' Output: 1 3 5 7 9
Example 2: Negative step
for t = 10 to 1 step -2
print t
next
' Output: 10 8 6 4 2
Code samples using STEP
004 loops.bas
2048.bas
2048.bas
3d block lettes.bas
3d_palmx.bas
3d_torus.bas
3dtictac.bas
3dtorus.bas
3dttt.bas
3dttt.bas
anball 1.0.bas
another look at trig functions.bas
arc_ui.bas
autumn scene.bas
B+B.bas
bairstow.bas
bb2fork smurf.bas
betrayal: crows ii.bas
bezier's autograph book.bas
bezier_pen.bas
bezierbounce.bas
biorythms.bas
blackjack.bas
BlackJack.bas
blushing snowflakes.bas
bomb.bas
bonkers.bas
bopit.bas
bowling7.bas
Language
AND
AS
BAND
BG
BOR
BYREF
CALL
CASE
CATCH
CONST
DECLARE
DEF
DO
ELIF
ELSE
ELSEIF
END
END TRY
ENDIF
EQV
EXIT
FALSE
FI
FOR
FUNC
GOSUB
GOTO
IF
IFF
IMP
IN
LABEL
LET
LIKE
LOCAL
LSHIFT
MDL
MOD
NAND
NEXT
NOR
NOT
ON
OR
REM
REPEAT
RETURN
RSHIFT
SELECT
STEP
STOP
SUB
THEN
THROW
TO
TRUE
TRY
UNTIL
USE
USG
USING
WEND
WHILE
XNOR
XOR
If there is insufficient information on this page and you wish learn more about STEP,
please send an email to smallbasic@gmail.com. You can help to improve information about
STEP by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.