default
Filter
Lets you specify a fallback in case a value doesn’t exist.
Parameters
Parameter | Required | Description |
---|---|---|
default_value
|
Yes |
string Value to return if the left side doesn’t exist.
|
Category
Description
The default
filter lets you specify a fallback in case a value doesn’t exist.
default
will show its value if the left side is nil
, false
,
or an empty string.