Home »
Documentation »
Filters »
default_if_none
Show the argument if the value is undefined.
Replaces undefined values with the argument.
For example:
{{ value|default_if_none:"that was undefined" }}When the value is “” then the output is “”. When the value is undefined then the output is “that was undefined”.
See also the filter default.
This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.