Increment

An increment will take any defined numeric variable and increase it by 1.

Example:

{% define $x = 1 %}
{% increment($x) %}
<!-- $x now equals 2 -->
<p>My variable now equals {$x}</p>
<!-- output -->
<p>My variable now equals 2</p>

This is a useful operation tag for doing particular actions within a loop.


Start your free, no-risk trial today.