mardi 25 août 2020

How to specify multiple conditions in thymeleaf

I have 4 conditions that needs to be specified, two in pair, like the following:

<div class="category-title" th:if="(${#locale.language=='ne'} and ${category.np_available}==true) or (${#locale.language=='en'} and ${category.en_available}==false})" th:text="${category.title_np}"></div>

It is not working, what can be done to make it work in this way?

Aucun commentaire:

Enregistrer un commentaire