Category:Loop Statements: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(Created page with "These are statements for writing loops into a program.")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
These are statements for writing loops into a program.
{{:Loop Statements}}
 
<noinclude>
[[Category:Statements]]
</noinclude>

Latest revision as of 21:54, 15 July 2013

DO

Begins a circular set of program lines.

Exit do

Will break out of a Do LOOP circular pattern if executed in the middle of the loop

For

Begins a loop, initializes the loop-counting variable, specifies when the loop will be terminated, and makes first test.

Loop

Ends a circular set of program lines and causes the loop to circle again if the expression is true

Next (N)

Calculates the next value of the loop counting variable and tests whether or not execution of the loop should continue.

Until

Used in connection with DO or LOOP. Is a conditional statement causing the LOOP command to effect a loop until the expression is true.

While

Used in connection with DO or LOOP. Is a conditional statement causing the LOOP command to effect a loop as long as the expression is true.

Pages in category "Loop Statements"

The following 6 pages are in this category, out of 6 total.