20 lines
1.3 KiB
Markdown
20 lines
1.3 KiB
Markdown
[stmt.cont]
|
||
|
||
# 8 Statements [[stmt]](./#stmt)
|
||
|
||
## 8.8 Jump statements [[stmt.jump]](stmt.jump#stmt.cont)
|
||
|
||
### 8.8.3 The continue statement [stmt.cont]
|
||
|
||
[1](#1)
|
||
|
||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/statements.tex#L1046)
|
||
|
||
A continue statement shall be enclosed by ([[stmt.pre]](stmt.pre "8.1 Preamble"))an [*iteration-statement*](stmt.iter.general#nt:iteration-statement "8.6.1 General [stmt.iter.general]") or an [*expansion-statement*](stmt.expand#nt:expansion-statement "8.7 Expansion statements [stmt.expand]")[.](#1.sentence-1)
|
||
|
||
If the innermost enclosing such statement X is an [*iteration-statement*](stmt.iter.general#nt:iteration-statement "8.6.1 General [stmt.iter.general]") ([[stmt.iter]](stmt.iter "8.6 Iteration statements")),
|
||
the continue statement
|
||
causes control to pass to the end of the [*statement*](stmt.pre#nt:statement "8.1 Preamble [stmt.pre]") or [*compound-statement*](stmt.block#nt:compound-statement "8.4 Compound statement or block [stmt.block]") of X[.](#1.sentence-2)
|
||
|
||
Otherwise, control passes to the end of the [*compound-statement*](stmt.block#nt:compound-statement "8.4 Compound statement or block [stmt.block]") of the current Si ([[stmt.expand]](stmt.expand "8.7 Expansion statements"))[.](#1.sentence-3)
|