如果两个给定值都为真,则渲染块的 helper 。如果指定了反向块,它将在 falsy 时渲染。用作块helper、内联helper或子表达式。
a
{any}
b
returns
{String}
{{ assign 'a' true }}{{ assign 'b' true }}{{#and a b}} Both a and b are truthy{{else}} a or b is falsy{{/and}}