Imported Upstream version 3.25.0
[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 the
13 current iteration of a :command:`foreach` or :command:`while` loop, and start
14 at the top of the next iteration.
15
16 See also the :command:`break` command.