Arithmetic
"Arithmetic" is a Movable Type plugin that provide ssimple arithmetic operations (addition, subtraction, multiplication,and division).
<p>
<code><MTAdd x="2" y="2"></code> results in "4" being output.
</p>
<p>
<code><MTSetVar2 name="foo" value="2"></code> followed by
<code><MTAddVar name="foo" value="2"></code> followed by
<code><MTGetVar2 name="foo"></code> results in "4" being output.
</p>
<p>
<code><MTSetVar2 name="foo" value="2"></code> followed by
<code><MTAddVar name="foo" value="[MTMultiply x='2' y='20']"></code> followed by
<code><MTGetVar2 name="foo"></code> results in "42" being output.
</p>

Leave a comment
Have a question, please use the MT Forums. Notes sumbitted here should pertain to tips & hints regarding documentation. Your note may be removed once it's contents has be integrated into the body of the page.