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

filter-is_defined, filter-if_undefined, filter-if