title: Handlebar Java : Adding OR condition in if statement
body: <p>How can I add an OR condition in handlebar using java? I want to do something like:</p>
  
  <pre><code>{{#if condition1}} || {{#if condition2}}
    do something
    .....
    ......
  {{else}}
    do something else...
  {{/if}}
  </code></pre>
  
  <p>Do I need to register some helper? For example for comparing if one number is greater than other, I have written a helper like:</p>
  
  <pre><code>handlebars.registerHelper("ifgt", new Helper&lt;Integer&gt;() {
              @Override
              public CharSequence apply(Integer value, Options options) throws IOException {
                  if (value == null || options.param(0) == null) return options.inverse();
                  if (value.compareTo(options.param(0)) &gt; 0) {
                      return options.fn();
                  }
                  return options.inverse();
              }
          });
  </code></pre>