The list tag is used to repeat a template section for each item in a list data source.
<list name="datasource">
<if @datasource:rownum@ ne @datasource:rowcount@>
@datasource:item@ :
</if>
<else>
<b>@datasource:item@</b>
</else>
</list>
The special variable datasource:rownum has the same meaning as the special column datasource.rownum in the body of a multiple tag.
The special variable datasource:rowcount has the same meaning in the list context as it does for multirow data sources.