If you have a number, you can simply convert it to an array, and then use the Swig standard for the tag. This is easiest if you always want to βstartβ a loop of 0.
For instance:
{% set productCount = 6 %} {% set productCountAsArray = Array(productCount) %} {
source share