I want to set up some conditions on Thymeleaf templates like this, but it doesn't work.
<li th:if="${entry.description != null && entry.owner == true}" th:each="entry : ${entryList}" class="group">
How do I make this code correctly work?
Replace
"${entry.description != null && entry.owner == true}"
with
"${entry.description != null and entry.owner == true}"
For reference you can check out this thread: http://forum.thymeleaf.org/How-to-have-multiple-condition-in-an-th-if-tag-td4025931.html
Let me know how you go
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With