I'm trying to compare two values using Handlebar js like javascript if and else if else conditions in Handlebar js
for example:
var value = 124;
if(value == 124)
{
console.log('This is red');
}
else if (value == 150)
{
console.log('this is blue');
}
else
{
console.log('No color selected');
}
same as in Handlebar js, how can we do it. I'm only able to see
{{#if field}} exp {{else}} exp {{/if}}
Please advise me. Thanks