11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tip: IBM recommends that you construct loops that terminate based on the WHILE<br />

or UNTIL condition. The LOOP statement is flexible enough to incorporate almost<br />

any logical progression. Use the CONTINUE keyword to transfer control to the<br />

beginning of the next loop.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

expr Specifies an expression to check to for the UNTIL or WHILE<br />

clause.<br />

expr can be any valid statement that includes a READNEXT<br />

statement or LOCATE statement.<br />

statements Specifies statements to execute each time the loop statement<br />

repeats.<br />

WHILE statements Specifies statements to execute if the expression in the WHILE<br />

clause is true.<br />

UNTIL statements Specifies statements to execute if the expression in the UNTIL<br />

clause is false.<br />

LOOP/REPEAT Parameters<br />

LOOP/REPEAT 1-429

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!