|
|
(3 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| ==Introduction==
| | #Redirect:[[:Category:Control Structures]] |
| | |
| Normally, statements in an application are executed one after the other in the order in which they’re written. This process is called sequential execution.
| |
| | |
| Various BR statements enable you to specify that the next statement to execute is not necessarily the next one in sequence—this is called transfer of control.
| |
| | |
| All applications can be written in terms of only three control structures:
| |
| | |
| # the sequence structure,
| |
| # the selection structure, and
| |
| # the repetition structure. | |
| | |
| ==GOTO Statement==
| |
| | |
| {{:GOTO}}
| |
| | |
| ==IF Statement==
| |
| | |
| {{:IF Statement}}
| |
| | |
| ==DO... LOOP Repetition Statement==
| |
| | |
| {{:DO LOOP}}
| |
| | |
| ==FOR... NEXT Repetition Statement==
| |
| | |
| {{:FOR NEXT}}
| |
| | |
| ==Counter-Controlled Repetition==
| |
| | |
| {{:Counter-Controlled Repetition}}
| |
| | |
| ==Sentinel-Controlled Repetition==
| |
| | |
| {{:Sentinel-Controlled Repetition}}
| |
| | |
| ==Nested Control Statements==
| |
| | |
| {{:Nested Control Statements}}
| |
| | |
| ==Multi-line Control Statements==
| |
| | |
| {{:Multi-line Control Statements}}
| |
| | |
| <noinclude>
| |
| [[Category:Control Structures]] | |
| </noinclude>
| |