title: setting a var in smarty with a condition
body: <p>I really like the <a href="http://www.smarty.net/documentation" rel="nofollow">smarty documentation</a> but sometimes its hard to find easy stuff... so heres my question. Is it possible to set a var in a condition? theres a large template with many euro signs.
  now there is another new language but they not paying with euro. so instead of settung up a condition for the language around each euro sign. i want to use a var which is set at the start of my template once with the language condition like:</p>
  
  <pre><code>{if $lang eq 'ch'}
  {*need to set "CHF" as a smarty or php var*}
  {else}
  {*need to set "EURO" as a smarty or php var*}
  {/if}
  
  &lt;div class="payment"&gt;{$price} {*CHF or EURO var*}&lt;/div&gt;
  </code></pre>