title: Thymeleaf "or" operator in th:if
body: <p>I am wondering what the correct syntax for having an Or operator within thymeleaf.</p>
  
  <p>I'm basing my solution off this stack post:</p>
  
  <p><a href="https://stackoverflow.com/questions/18006941/thymeleaf-boolean-operators">Thymeleaf - boolean operators</a></p>
  
  <p>Where the top voted answer uses "or".</p>
  
  <p>My current code:</p>
  
  <pre><code> th:if="${not #strings.startsWith(inbox?.status, 'P')}"
  </code></pre>
  
  <p>Is checking if the inbox.status does not begin with p, if this is the case the text will be displayed, which works fine.</p>
  
  <p>Now I want to check that the inbox status doesn't begin with 'App' as well, like so:</p>
  
  <pre><code>th:if="${not #strings.startsWith(inbox?.status, 'P') or not #strings.startsWith(inbox.status, 'App')}"
  </code></pre>
  
  <p>But this is doing nothing.</p>