diff --git a/doc_src/cmds/if.rst b/doc_src/cmds/if.rst index 78b8d922e..12029511f 100644 --- a/doc_src/cmds/if.rst +++ b/doc_src/cmds/if.rst @@ -16,7 +16,7 @@ Description ``if`` will execute the command ``CONDITION``. If the condition's exit status is 0, the commands ``COMMANDS_TRUE`` will execute. If the exit status is not 0 and :doc:`else ` is given, ``COMMANDS_FALSE`` will be executed. -You can use :doc:`and ` or :doc:`or ` in the condition. See the second example below. +You can use :doc:`not `, :doc:`and ` or :doc:`or ` in the condition. See the second example below. The exit status of the last foreground command to exit can always be accessed using the :ref:`$status ` variable.