sven
4
Hi @THANAS,
It sure is possible. Simply create a variable that always adds up if the condition of the IF-statement is true:
{% comment %}some needed variables to use in text{% endcomment %}
{% assign section_nbr = 0 %}
{% comment %}calculate section number{% endcomment %}
{% if custom.show_txt.section_a %}
{% assign section_nbr = section_nbr | plus:1 %}
{% endif %}
**{{ section_nbr }}** Some title
{% input custom.show_txt.section_a as:boolean %} {% input custom.section_a.txt as:text %}
You might want to check this case as well, while you’re creating your own text templates