set

set a variable for latter use

  • eval evaluate an expression
  • var variable name
  • value value
see show
<r:set var='foo'>I am <r:show attr='name'/></r:set>
...
<p>She said "<r:show var='foo'/>".</p>
<r:set var='count' do='stat' find='count'/>
<r:set var='price' eval='count * [d_unit_price]' format='%.2f'/>
...
<r:show var='foo'/>
<r:show var='price'/>