Thymeleaf - boolean operators

前端 未结 2 1709
一个人的身影
一个人的身影 2021-01-17 12:30

How can I use boolean operators like and or or using Thymeleaf?

For instance, if I want to show the data from a table if only one of the co

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-17 13:11

    Instead of using conditional operators && and || in the expression like we use in Java and Javascript, in Thymeleaf we use the text AND and OR for comparison.

    OR condition example:

    AND condition example:

提交回复
热议问题