<tpl for="a_variable or condition.."></tpl>
<tpl if="a_variable or condition"></tpl>
<tpl exec="some javascript"></tpl>
<tpl for="a_variable or condition.."></tpl>
<tpl if="a_variable or condition"></tpl>
<tpl exec="some javascript"></tpl>