# Infotext text-template

**URL:** <https://community.silverfin.com/t/infotext-text-template/1926>\
**Category:** Templates\
**Tags:** text-template\
**Created:** [September 28, 2020, 7:54pm UTC](https://community.silverfin.com/t/infotext-text-template/1926 "2020-09-28T19:54:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [October 5, 2020, 10:05am UTC](https://community.silverfin.com/t/infotext-text-template/1926/4 "2020-10-05T10:05:02Z")

</div>

Hi @THANAS,

It sure is possible. Simply create a variable that always adds up if the condition of the IF-statement is true:

```auto
{% 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 😉

> [@Webinar (DU): how to build a letter of assignment](https://community.silverfin.com/t/webinar-du-how-to-build-a-letter-of-assignment/1164):
>
> A webinar discussing a few things on how to build a custom text template: Dutch speaking

> [@CASE: Engagement letter - Opdrachtbrief (NL)](https://community.silverfin.com/t/case-engagement-letter-opdrachtbrief-nl/141):
>
> Below you can find the basics on how to make a company engagement letter. Defining variables like address of the client company |-------------60%----------------:|:-----30%------|----10%---:+ ||{{company.name}} {{company.company\_form}}| | ||Tav {% input.custom.opdrachtbrief.naam %}|| ||{{company.street }}\<br\>{{company.city }}|| boolean to compose different topics, in this example : what is agreed upon between client and accountant {% inputcomment %} Kiezen: {% input custom.artikels.op…

---

_[View the full topic](https://community.silverfin.com/t/infotext-text-template/1926)._
