Loop Statements: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
Ends a circular set of program lines and causes the loop to circle again if the expression is true | Ends a circular set of program lines and causes the loop to circle again if the expression is true | ||
;[[Next]] (N) | ;[[Next (Statement)|Next]] (N) | ||
Calculates the next value of the loop counting variable and tests whether or not execution of the loop should continue. | Calculates the next value of the loop counting variable and tests whether or not execution of the loop should continue. | ||
;[[Until]] | ;[[DO LOOP|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. | 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]] | ;[[DO LOOP|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. | 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. | ||
<noinclude> | |||
[[Category:Summary of Statements]] | |||
</noinclude> |
Latest revision as of 01:13, 16 July 2013
Begins a circular set of program lines.
Will break out of a Do LOOP circular pattern if executed in the middle of the loop
Begins a loop, initializes the loop-counting variable, specifies when the loop will be terminated, and makes first test.
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.
Used in connection with DO or LOOP. Is a conditional statement causing the LOOP command to effect a loop until the expression is true.
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.