If
~~
-The ``if`` statement in Twig is comparable with the if statements of PHP. In the
-simplest form you can use it to test if a variable is defined, not empty or
-not false:
+The ``if`` statement in Twig is comparable with the if statements of PHP. In
+the simplest form you can use it to test if a variable is not empty:
.. code-block:: jinja
</ul>
{% endif %}
+.. note::
+
+ If you want to test if the variable is defined, use ``if users is
+ defined`` instead.
+
For multiple branches ``elseif`` and ``else`` can be used like in PHP. You can use
more complex ``expressions`` there too: