and
Helper that renders the block if both of the given values are truthy. If an inverse block is specified it will be rendered when falsy. Works as a block helper, inline helper or subexpression.
Params
a{any}b{any}returns{String}
Example
{{ assign 'a' true }}
{{ assign 'b' true }}
{{#and a b}}
Both a and b are truthy
{{else}}
a or b is falsy
{{/and}}
Was this article helpful to you?