is_undefined

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”.

Previous topic

is_rtl

Next topic

is_visible

Versions

Actions