Hello All,
I’m currently trying to combine multiple conditions to create a specific sentence that will be updated based on several criterias:
- does an amount exists?
- language
- specific calculation criteria to add a wording
Using only If statement I do not succeed to create my perfect sentence. Therefore I try to use the UNLESS criteria on the language of the template, however I think this will not work as I’m not using == > or < criterias in my condition (see below)
{% if leg_tot > 0 %}
{% unless str_language contains “fr” %}
{% if sub_sub_tot <= (leg_tot*10) %}{% t “sub_para1” %}{{ period.end_date | date:“%d %B %Y” }}{% t “leg_para4” %}{% input custom.comp.curr5 default:company.currency %} {% input custom.comp.amount5 as:currency default:leg_tot %}{% else %}{% t “sub_para1” %}{{ period.end_date | date:“%d %B %Y” }}{% t “leg_para2” %}{% input custom.comp.curr5 default:company.currency %} {% input custom.comp.amount5 as:currency default:leg_tot %}{% endif %}.
{% else %}
{% t “sub_para1” %}{{ period.end_date | date:“%d %B %Y” }}{% t “leg_para2” %}{% input custom.comp.curr5 default:company.currency %} {% input custom.comp.amount5 as:currency default:leg_tot %}{% if sub_sub_tot <= (leg_tot*10) %}{% t “leg_para3” %}{% endif %}.
{% endunless %}
{% endif %}
Do you have any view how I could succeed to make this unless criteria work?
Thanks and regards,
Jonathan