The Math tag evaluates mathematical expressions.

The total is $<Math><Field price /> + <Field tax /></Math>.

It supports basic arithmetic operations, with template tags inside.


Use the equal sign = to assign a value to a variable of any name.

<Math>total = 0</Math>

This can be used to calculate things based on loops.

<Math>total = 0</Math>

<Loop type=product>
  <Math>total = total + <Field price /></Math>

Total: <Math>total</Math>