# UNLESS statement including translation criteria

**URL:** <https://community.silverfin.com/t/unless-statement-including-translation-criteria/2472>\
**Category:** Liquid Testing\
**Tags:** variables\
**Created:** [November 22, 2023, 11:03am UTC](https://community.silverfin.com/t/unless-statement-including-translation-criteria/2472 "2023-11-22T11:03:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonathanK](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@JonathanK](https://community.silverfin.com/u/JonathanK)\
**Post date:** [November 22, 2023, 11:03am UTC](https://community.silverfin.com/t/unless-statement-including-translation-criteria/2472/1 "2023-11-22T11:03:42Z")

</div>

Hello All,

I’m currently trying to combine multiple conditions to create a specific sentence that will be updated based on several criterias:

1. does an amount exists?
2. language
3. 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
