f62802e2d1a38a7aa2bf073bd181aa981ad42854
[platform/upstream/cmake.git] / Help / command / continue.rst
1 continue
2 --------
3
4 .. versionadded:: 3.2
5
6 Continue to the top of enclosing foreach or while loop.
7
8 .. code-block:: cmake
9
10   continue()
11
12 The ``continue`` command allows a cmake script to abort the rest of a block
13 in a :command:`foreach` or :command:`while` loop, and start at the top of
14 the next iteration.
15
16 See also the :command:`break` command.