title: {if}{else} do not work properly in smarty
body: <p>I have following smarty code on my template</p>
  
  <pre><code>{capture name="diff"}
      {datediff timestamp=$data_base.updated_date}
  {/capture}
  
  {$smarty.capture.diff} | {$smarty.const.UPDATE_BLOCK_SECONDS}
  
  {if $smarty.capture.diff &gt; $smarty.const.UPDATE_BLOCK_SECONDS}
      enable update
  {else}
      disable update
  {/if}
  </code></pre>
  
  <p>When I print both variable <code>$smarty.capture.diff</code> and <code>$smarty.const.UPDATE_BLOCK_SECONDS</code>, they output correct value (for example 98969 and 86400), but the {if} statement does not works and always print value "disable update"</p>