summaryrefslogtreecommitdiffstats
path: root/Help/command/endwhile.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/command/endwhile.rst')
-rw-r--r--Help/command/endwhile.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Help/command/endwhile.rst b/Help/command/endwhile.rst
index 798c20e..5ef585b 100644
--- a/Help/command/endwhile.rst
+++ b/Help/command/endwhile.rst
@@ -3,8 +3,12 @@ endwhile
Ends a list of commands in a while block.
-::
+.. code-block:: cmake
- endwhile(expression)
+ endwhile([<condition>])
See the :command:`while` command.
+
+The optional ``<condition>`` argument is supported for backward compatibility
+only. If used it must be a verbatim repeat of the argument of the opening
+``while`` clause.