default

Returns the default when the bound value is empty. Note, as the default filter you don't use it by passing it's name, but instead via two pipes (||).

Input

{% assign something = 'Hello, Word!' %}
{{somethingElse || 'test'}}

Output

test