Fetching contributors…
Cannot retrieve contributors at this time
16 lines (9 sloc) 452 Bytes

Tests if a value is undefined.

Checks if the value is empty and outputs a boolean true or false. This is useful in combination with the :ref:`tag-if` tag.

For example:

{% if value|is_undefined %}The value was undefined{% endif %}

When the value is “” then the output “The value was undefined”.

.. seealso:: :ref:`filter-is_defined`, :ref:`filter-if_undefined`, :ref:`filter-if`