increment

Creates a new number variable, and increases its value by one every time it is called. The initial value is 0.

Input
  • {% increment my_counter %}
    {% increment my_counter %}
    {% increment my_counter %}
Output
  • 0
    1
    2