|
83 | 83 |
|
84 | 84 | \pnum
|
85 | 85 | \indextext{\idxgram{condition}{s}!rules for}%
|
86 |
| -The rules for \grammarterm{condition}{s} apply both to |
87 |
| -\grammarterm{selection-statement}{s} and to the \keyword{for} and \keyword{while} |
88 |
| -statements\iref{stmt.iter}. |
| 86 | +The rules for \grammarterm{condition}{s} apply both |
| 87 | +to \grammarterm{selection-statement}{s}\iref{stmt.select} and |
| 88 | +to the \keyword{for} and \keyword{while} statements\iref{stmt.iter}. |
89 | 89 | A \grammarterm{condition} that is not an \grammarterm{expression} is a
|
90 | 90 | declaration\iref{dcl.dcl}.
|
91 | 91 | The \grammarterm{declarator} shall not
|
|
268 | 268 | \indextext{statement!\idxcode{if}}
|
269 | 269 |
|
270 | 270 | \pnum
|
271 |
| -If the condition\iref{stmt.select} yields \tcode{true} the first |
| 271 | +If the condition\iref{stmt.pre} yields \tcode{true} the first |
272 | 272 | substatement is executed. If the \keyword{else} part of the selection
|
273 | 273 | statement is present and the condition yields \tcode{false}, the second
|
274 | 274 | substatement is executed. If the first substatement is reached via a
|
|
552 | 552 |
|
553 | 553 | \pnum
|
554 | 554 | In the \keyword{while} statement the substatement is executed repeatedly
|
555 |
| -until the value of the condition\iref{stmt.select} becomes |
| 555 | +until the value of the condition\iref{stmt.pre} becomes |
556 | 556 | \tcode{false}. The test takes place before each execution of the
|
557 | 557 | substatement.
|
558 | 558 |
|
|
630 | 630 | re-evaluating \grammarterm{condition}.
|
631 | 631 | \begin{note}
|
632 | 632 | Thus the first statement specifies initialization for the loop; the
|
633 |
| -condition\iref{stmt.select} specifies a test, sequenced before each |
| 633 | +condition\iref{stmt.pre} specifies a test, sequenced before each |
634 | 634 | iteration, such that the loop is exited when the condition becomes
|
635 | 635 | \tcode{false}; the expression often specifies incrementing that is
|
636 | 636 | sequenced after each iteration.
|
|
0 commit comments