title: If-Else in a th:each statement in Thymeleaf
body: <p>What I want is an if-else in a th:each statement in Thymeleaf.</p>
  
  <p><code>If currentSkill != null</code>, then show table with content, else 'You don't have any skills'</p>
  
  <p>This is the code without the if/else:</p>
  
  <pre><code>&lt;div th:each="skill : ${currentSkills}"&gt;
      &lt;table&gt;
           &lt;tr&gt;&lt;td th:text="${skill.name}"/&gt;&lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>