Introduction
Thedefault filter is used to provide a fallback value when a variable is null, empty, or undefined. This is useful to ensure there is always a value displayed, even if the original variable is not set.
Example of Use
Example of how to use thedefault filter to define a fallback value when the first_name variable is not set or is empty:
Output Example of the Code
