1

How to compare two conditions in a IF block.

Example: Like in Java

if(apple || orange) {
  ...
}

In hbs: it work for single parameter

{{#if apple}}

how can i compare two parameters in hbs IF block ? I tried to write

{{#if apple || orange}}

but it is not working.

Gaurav
  • 1,965
  • 2
  • 16
  • 32
  • 1
    Good solution over here http://stackoverflow.com/questions/8853396/logical-operator-in-a-handlebars-js-if-conditional – romo Dec 24 '14 at 09:29

0 Answers0