I have 18 sections in a template I have developed. I want to assign a number to each section when it is activated ( with a thick) .
I am able to give a number to each section up to number 9 with the code bellow. After number 9 I am unable to continue with number 10, 11 … 18.
{% assign section = '1234567891012' %}
{% assign nr = 12 %}
{% ic %}{% input custom.tick.section_A as:boolean %}{% endic %}{% if custom.tick.section_A %}|{::font size="m"}**{{ section | slice:0 }}{% assign nr = nr | minus:1 %}{% assign section = section | slice:1,nr %}) Sales ledger**{:/font}| {% assign nr = nr | plus:1 %}{% else %}|{% ic %}{::font size="m"} Sales ledger{:/font}{% endic %}{% endif %}
Can you please let me know how can I fix this code in order to display numbers above 9 ?