I'm using handlebar to create template for my backbone application and I'm using handlebar ifCond helper (source code already available). And using this helper function I can easily check between two values e.g
{{#ifCond val1 val2 operator="!="}}
{{/ifCond}}
Similarly I can use "==", ">", "<" operators.
But now I want to use &&, || operators within the if condition block, e.g.
{{#ifCond val1 && val2}}
{{/ifCond}}
As well as I want to use the mathematical operators within the if block, e.g
{{#ifCond val1+1 val2 operator=">"}}
{{/ifCond}}
Please suggest me what will be the best way to do this.