How to use {{#if}} or {{#each}}

how to use {{#if}} implemets
{{#if item.length == 0}}
i`m use ‘item.length == 0’
its error

:slight_smile:

http://blazejs.org/guide/spacebars.html

thanks :) :smiley::smiley::smiley::smiley::smiley:

but undefined:joy::joy::joy::joy::joy::joy:

i got it!
:laughing::laughing::laughing::laughing:
Template.registerHelper(‘and’,(a,b)=>{
return a && b;
});
{{#if and a b}}