title: Jquery template - else if construct
body: <p>I was trying to use an "else if" statement inside the jquery template block.I have seen in other samples that instead of writing if else, we can just put else.But this is not working for me, its throwing syntax error on the template.can any one help pls?</p>
  
  <p>The acutual way it should work is like</p>
  
  <pre><code>if(Amount == "")
  {
  -
  }
  else if(balance == "")
  {
  *
  }
  else
  {
  Amount
  }
  </code></pre>
  
  <p>I have mentioned below the jquery template syntax which i wrote to acheive this.</p>
  
  <pre><code>&lt;script id="MyTemplate" type="text/x-jquery-tmpl"&gt;
      &lt;tr style="background-color:#EFF3FB"&gt;&lt;td onclick="test();"&gt;${CardNumber}&lt;/td&gt;&lt;td&gt;${PostDate}&lt;/td&gt;
              &lt;td&gt;{{if (Amount == "")}}-
                  {{else(balance == "")}}*                      
                  {{else}}${Amount}
                  {{/if}}
               &lt;/td&gt;
               &lt;td&gt;${Description}&lt;/td&gt;&lt;/tr&gt;
      &lt;/script&gt;
  </code></pre>