forloop

forloop Iterations

Example

[%forloop from:'1' to:'[@total@]' %]
    [%param *body%]
        [@count@] - Items.
    [%/param%]
[%/forloop%]

Parameters

from Integer Starting value
to Integer Final value
header HTML & b@se tags Renders a single usable space above the body
body* HTML & b@se tags Runs an array for each option in the tag
footer HTML & b@se tags Renders a single usable space below the body
ifempty:'' HTML & b@se tags If the forloop returns no results, it'll load this block instead

Note this function works based on incrementing the value by 1.


Was this article useful?

Be notified when this page is updated. Optional.