not
{{# not(EXPRESSION) }} TRUTHY {{else}} FALSY {{/not}}
Renders TRUTHY
if EXPRESSION
is falsy or FALSY
if EXPRESSION
is truthy. Both TRUTHY
and FALSY
will be rendered with the
current scope.
{{# not(person.isAwake()) }} Shhhhh! {{/ not }}
Parameters
- EXPRESSION
{KeyLookup Expression|Call Expression}
:A lookup expression that will provide a truthy or falsey value.
- FN
{sectionRenderer(context, helpers)}
:A subsection that can be optionally rendered.
- INVERSE
{sectionRenderer(context, helpers)}
:An optional subsection that will be rendered if
EXPRESSION
is truthy and {{else}} is used.
Use
The not
helper evaluates the inverse of the value
of the key and renders the block between the helper and the slash.
{{#not(expr)}}
// not
{{/not}}