summaryrefslogtreecommitdiff
path: root/Help/command/break.rst
blob: 4875a2bf2c2a6c4e9b5c2672c33f4eb0a9ab4c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
break
-----

Break from an enclosing foreach or while loop.

.. code-block:: cmake

  break()

Breaks from an enclosing :command:`foreach` or :command:`while` loop.

See also the :command:`continue` command.