thymlef check if condition value with string code example Example: thymeleaf if string empty <div th:if= "${searchResults.results != ''}">