title: ExtJs XTemplate if statement to include a specific css
body: <p>Can someone give me an example of how to use XTemplate in Extjs to include a specific css class?</p>
  
  <pre><code>&lt;tpl if="total &gt; 5000"&gt;
       yellow css
  &lt;tpl else&gt;
     red css
  &lt;/tpl&gt;
  </code></pre>
  
  <p><strong>edit:</strong>
  I have something like this</p>
  
  <pre><code>new Ext.XTemplate('&lt;span style="display:inline-block; margin-right: 730px;""&gt;' + title + ' ({count}) &lt;/span&gt;',
      '&lt;span ',
          '&lt;tpl if="priceTotal &amp;gt; 5000"&gt; style="color:black;" class="x-form-item-label x-form-warning"&lt;/tpl&gt;',
      '&gt; {priceTotalLabel}:  {priceTotal}',
      '&lt;/span&gt;'
  );
  </code></pre>
  
  <p>I want to replace the value 5000 with a value from a variable, so taht it's not hardcoded, how can I do this?</p>