continue.rst 346 B

12345678910111213141516
  1. continue
  2. --------
  3. .. versionadded:: 3.2
  4. Continue to the top of enclosing foreach or while loop.
  5. .. code-block:: cmake
  6. continue()
  7. The ``continue`` command allows a cmake script to abort the rest of a block
  8. in a :command:`foreach` or :command:`while` loop, and start at the top of
  9. the next iteration.
  10. See also the :command:`break` command.