Please enable JavaScript to view this site.

A-Shell Reference

DO {WHILE or UNTIL condition}

     <statements>

     {if <condition> REPEAT}

     {if <condition> EXIT}

     {<statements>}

LOOP {WHILE or UNTIL condition}

 

For example:  

DO WHILE A > B

    A = A + 1

    B = B * 2

LOOP

 

Another example:

DO

    A = A + 1

LOOP UNTIL A = 10

 

Compatibility: BASICplus at the source level; requires /X:1 or higher.