Loop Statements: Difference between revisions
Jump to navigation
Jump to search
(Redirected page to Category:Loop Statements) |
No edit summary |
||
Line 1: | Line 1: | ||
;[[For]] | |||
Begins a loop, initializes the loop-counting variable, specifies when the loop will be terminated, and makes first test. | |||
;[[Next]] (N) | |||
Calculates the next value of the loop counting variable and tests whether or not execution of the loop should continue. | |||
;[[Do]] | |||
Begins a circular set of program lines. | |||
;[[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. | |||
;[[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. | |||
;[[Loop]] | |||
Ends a circular set of program lines and causes the loop to circle again if the expression is true | |||
;[[Exit Do]] | |||
Will break out of a Do LOOP circular pattern if executed in the middle of the loop |
Revision as of 22:15, 6 February 2013
Begins a loop, initializes the loop-counting variable, specifies when the loop will be terminated, and makes first test.
- Next (N)
Calculates the next value of the loop counting variable and tests whether or not execution of the loop should continue.
Begins a circular set of program lines.
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 until the expression is true.
Ends a circular set of program lines and causes the loop to circle again if the expression is true
Will break out of a Do LOOP circular pattern if executed in the middle of the loop