title: How to set color in td with thymeleaf?
body: <p>I tried if <code>object.qtdItem == 0</code>, then set the color to red for the TD:</p>
  
  <pre><code>&lt;td th:style="${obj.qtdItem == 0 ? 'color: red;'}" th:text="${obj.text}"&gt;&lt;/td&gt;
  </code></pre>
  
  <p>but this happened </p>
  
  <pre><code>error: Caused by:
  org.springframework.expression.spel.SpelParseException: Expression
  [perfil.qtdItem == 0 ? 'red'] @38: EL1044E: Unexpectedly ran out of
  input
  </code></pre>