th:if ist empty string code example
Example 1: thymeleaf if string empty
<div th:if= "${searchResults.results != ''}">
Example 2: thymeleaf strings is not empty
<div th:if= "${searchResults.results != null}">
<div th:if= "${searchResults.results != ''}">
<div th:if= "${searchResults.results != null}">