Browse Source

Help: Add see-also refs for flow control commands

Markus Ferrell 3 years ago
parent
commit
033c066543
4 changed files with 29 additions and 0 deletions
  1. 8 0
      Help/command/foreach.rst
  2. 6 0
      Help/command/function.rst
  3. 7 0
      Help/command/if.rst
  4. 8 0
      Help/command/while.rst

+ 8 - 0
Help/command/foreach.rst

@@ -130,3 +130,11 @@ yields
   -- en=two, ba=dua
   -- en=three, ba=tiga
   -- en=four, ba=
+
+See Also
+^^^^^^^^
+
+* :command:`break`
+* :command:`continue`
+* :command:`endforeach`
+* :command:`while`

+ 6 - 0
Help/command/function.rst

@@ -73,3 +73,9 @@ argument.  Referencing to ``ARGV#`` arguments beyond ``ARGC`` have
 undefined behavior.  Checking that ``ARGC`` is greater than ``#`` is
 the only way to ensure that ``ARGV#`` was passed to the function as an
 extra argument.
+
+See Also
+^^^^^^^^
+
+* :command:`endfunction`
+* :command:`return`

+ 7 - 0
Help/command/if.rst

@@ -419,3 +419,10 @@ There is no automatic evaluation for environment or cache
 :ref:`Variable References`.  Their values must be referenced as
 ``$ENV{<name>}`` or ``$CACHE{<name>}`` wherever the above-documented
 condition syntax accepts ``<variable|string>``.
+
+See also
+^^^^^^^^
+
+  * :command:`else`
+  * :command:`elseif`
+  * :command:`endif`

+ 8 - 0
Help/command/while.rst

@@ -23,3 +23,11 @@ Per legacy, the :command:`endwhile` command admits
 an optional ``<condition>`` argument.
 If used, it must be a verbatim repeat of the argument of the opening
 ``while`` command.
+
+See Also
+^^^^^^^^
+
+  * :command:`break`
+  * :command:`continue`
+  * :command:`foreach`
+  * :command:`endwhile`