title: ThymeLeaf: Not Equal expression in th:if
body: <p>Very new to ThymeLeaf, but have encountered a problem on a project I am working on.  Getting the following error in the logs:</p>
  
  <pre><code>Exception evaluating SpringEL expression: "!searchResults.results.empty"
  </code></pre>
  
  <p>Looking at the offending code it is:</p>
  
  <pre><code>&lt;th:block th:if="${!searchResults.results.empty}"&gt;
  </code></pre>
  
  <p>I assume that the placement of the exclamation mark (!) is incorrect.  I have tried:</p>
  
  <pre><code>&lt;th:block th:if="${not searchResults.results.empty}"&gt;
  </code></pre>
  
  <p>But same error evaluating.  Can someone help me as to how to negate a check?</p>