counter

1.0 1.1 1.2 1.3

Initiates a counter that is incremented every time you call it

<?php
counter([ string $name = 'default', [ int $start = 1, [ int $skip = 1, [ string $direction = "up", [ bool $print = true, [ string $assign = null ]]]]]])

Examples

Example #1

index.tpl
{counter start=10 skip=5}
{counter}
{counter}
{counter start=10 direction=down}
{counter}

The above example will output:

10
15
20
10
5