vte:for

attributes:
from [array] - The array you are looping through
key [string] - The name of the variable that is the current key
start [integer] - The number to start from
step [integer] - Step increment, default 1
loop [integer] - The number of iterations

vte:for tag is used to execute a number of iterations specified by attributes or number of item in array.

Required attributes are key, start and loop or from and key for array loop.

Example:

<vte:for from="{article_list}" key="latest_key" step="{VIVVO_HOMEPAGE_ARTICLE_LIST_COLUMNS}">
    <vte:foreach item="article" from="{article_list}" start="{latest_key}" loop="{VIVVO_HOMEPAGE_ARTICLE_LIST_COLUMNS}">
        <vte:include file="{VIVVO_TEMPLATE_DIR}summary/default.tpl" />
    </vte:foreach>
</vte:for>