Skip to main content

Function: default_()

default_(this, left, _default): unknown

Return a default value if the input is nil, false or empty.

Parameters

this: FilterContext

An object containing a reference to the active render context and any keyword/named arguments.

left: unknown

Any value.

_default: unknown = ""

Optional default value. Defaults to an empty string.

Returns

unknown

The default value if the input is nil, false or empty.

Defined in

src/builtin/filters/misc.ts:45