Yeah spacebars doesn’t like logical operations so you have to DIY.
Short of doing a custom helper for every logic condition, you can do something like this:
@copleykj ’s solution works and is standard for simple, one variable true check. (Note this doesn’t work if you want to check the inverse (!note.favourite) or two variables or anything more complicated than the above example.
If you require anything remotely more than a check for truth of one variable, you’d have get helper functions involved
<a class="toggle-icon {{classFavouriteToggle arg1 arg2}}" href="">
<i class="fa fa-star"></i>
</a>
Template.registerHelper({
classFavouriteTogg…