title: Thymeleaf th:class condition
body: <p>I wrote this condition and does not work:</p>
  
  <pre><code>&lt;fieldset class="rating"&gt;
      &lt;span class="course-view-rating bigger"&gt;
          &lt;label th:class="${feedback.message.rating &amp;ge; 5}? 'active'" for="rating5"&gt;&lt;/label&gt;
          &lt;label th:class="${feedback.message.rating &amp;ge; 4}? 'active'" for="rating4"&gt;&lt;/label&gt;
          &lt;label th:class="${feedback.message.rating &amp;ge; 3}? 'active'" for="rating3"&gt;&lt;/label&gt;
          &lt;label th:class="${feedback.message.rating &amp;ge; 2}? 'active'" for="rating2"&gt;&lt;/label&gt;
          &lt;label th:class="${feedback.message.rating &amp;ge; 1}? 'active'" for="rating1" &gt;&lt;/label&gt;
      &lt;/span&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>The value of <code>feedback.message.rating</code> is always a number from 0 to 5.</p>
  
  <p>Using:</p>
  
  <ul>
  <li>Spring 4.3</li>
  <li>Java 1.8</li>
  <li>Thymeleaf 3.0.7*** </li>
  </ul>
  
  <p>This is the error message:</p>
  
  <pre><code>Servlet.service() for servlet [thymeleafDispatcherServlet] in context with path [/frontend-th] threw exception 
      [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: 
      Exception evaluating SpringEL expression: "feedback.message.rating ? 1" (template: "pages/eventdetail" - line 179, col 52)] with root cause
      java.lang.IllegalStateException: Cannot handle (8805) '?'
  </code></pre>
  
  <p>Thanks for the response</p>