50 TO 10 STEP -10
        PRINT a
    NEXT a

    PRINT "Finished!"
    END
</code></pre>
<p>If you miss out STEP altogether, Axbasic counts upwards in ones. Both of the following lines behave exactly the same way:</p>
<pre><code>    FOR a = 1 TO 5
    FOR a = 1 TO 5 STEP 1
</code></pre>
<p>The NEXT statement has an important role: it adds a number to the variable <strong>a</strong>. This happens <em>even on the last loop</em>. Consider the following script:</p>
<pre><code>    FOR a = 10 TO 50 STEP 10
     