summaryrefslogtreecommitdiffstats
path: root/Help/command/continue.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/command/continue.rst')
-rw-r--r--Help/command/continue.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Help/command/continue.rst b/Help/command/continue.rst
new file mode 100644
index 0000000..f62802e
--- /dev/null
+++ b/Help/command/continue.rst
@@ -0,0 +1,16 @@
+continue
+--------
+
+.. versionadded:: 3.2
+
+Continue to the top of enclosing foreach or while loop.
+
+.. code-block:: cmake
+
+ continue()
+
+The ``continue`` command allows a cmake script to abort the rest of a block
+in a :command:`foreach` or :command:`while` loop, and start at the top of
+the next iteration.
+
+See also the :command:`break` command.