How to have multiple condition in an th:if tag using thymeleaf

前端 未结 4 802
面向向阳花
面向向阳花 2020-12-15 02:46

I have a text to render in three different possible colors using thymeleaf.

So the code I\'ve made so far to test the value is:

th:i         


        
4条回答
  •  伪装坚强ぢ
    2020-12-15 03:23

    I got the answer from the thymeleaf forum. The way to do it is :

    th:if="${evaluation < 49 and evaluation > 29}"
    

    Problem solved !

提交回复
热议问题