is_undefined¶
- Module: mod_base
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 if tag.
For example:
{% if value|is_undefined %}The value was undefined{% endif %}
When the value is “” then the output “The value was undefined”.
See also