#!../jet-2.0
<jet name1="localname" filterblanklines="true" trimlines="true">
<set name="test1" value="5 + 5" />
<set name="test2" expr="expr($[test1])" />
$[test2]=10
<set name="numbers">0123456789</set>
<set name="lefty" expr="left($[numbers],5)" />
$[lefty]=01234
<set name="righty" expr="right($[numbers],5)" />
$[righty]=56789
<set name="trim" expr="trim('     this is a test      ')" />
$[trim]=this is a test
<set name="integer" expr="integer(12430.54356546)" />
$[integer]=12430
<set name="result" expr="5 + 5 * 5" />
$[result]=30
<set name="result" expr="5 + 5 * 5 + 5" />
$[result]=35
<set name="result" expr="(5 * 2) + (5 * 5) + (5 * 2)" />
$[result]=45
<set name="fivexfive" expr="5 * 5" />
<set name="result" expr="5 * 2 + $[fivexfive] + 5 * 2" />
$[result]=45
<set name="result" expr="2 + 2 * 3 + 2" />
$[result]=10
<set name="result" expr="expr(2 + 2 * 3 + 2)" />
$[result]=10
</jet>
