thymeleaf if code example
Example 1: thymeleaf if string empty
<div th:if= "${searchResults.results != ''}">
Example 2: thymeleaf th:if two conditions
th:if="${lang=='A'} and ${lang=='B'}"
<div th:if= "${searchResults.results != ''}">
th:if="${lang=='A'} and ${lang=='B'}"