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

前端 未结 4 808
面向向阳花
面向向阳花 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:21

    I did this to have multiple conditions in th:if in thymeleaf

    I added the and operator between conditions. You can also add or if needed.

提交回复
热议问题