title: Thymeleaf th unless
body: <p>in my html i wanna use "th:unless". i wanna compare two coming variable,if any one match with other, i want to hide the button in that raw.</p>
  
  <p>here is my code..</p>
  
  
  
          
  
              Art-in-Nisantasi-Id
              Art-in-Nisantasi-Text
              Art-in-Nisantasi-Url
              Art-in-Nisantasi-Coordinate
          
  
          
              
              
              
              
  
          
  
      
  
  <pre><code>&lt;h3&gt;All Contents&lt;/h3&gt;
  &lt;table border="1"&gt;
      &lt;tr align="left"&gt;
  
          &lt;th style="width: 20px;"&gt;Art-in-Nisantasi-Id&lt;/th&gt;
          &lt;th style="width: 100px;"&gt;Art-in-Nisantasi-Text&lt;/th&gt;
          &lt;th style="width: 50px;"&gt;Art-in-Nisantasi-Url&lt;/th&gt;
          &lt;th style="width: 50px;"&gt;Art-in-Nisantasi-Coordinate&lt;/th&gt;
      &lt;/tr&gt;
  
  
  
      &lt;tr th:each="contentType:${contentTypes}"&gt;
          &lt;td th:text="${contentType.art_in_nisantasi_id}"&gt;&lt;/td&gt;
          &lt;td th:text="${contentType.art_in_nisantasi_text}"&gt;&lt;/td&gt;
          &lt;td th:text="${contentType.art_in_nisantasi_url}"&gt;&lt;/td&gt;
          &lt;td th:text="${contentType.art_in_nisantasi_coordinate}"&gt;&lt;/td&gt;
  
      &lt;/tr&gt;
  
  
      &lt;div&gt;
          &lt;td
              th:unless="${contentType.art_in_nisantasi_id}+'='+${selectedContent.art_in_nisantasi_id}"&gt;&lt;/td&gt;
          &lt;td th:attr="data-id=${contentType.art_in_nisantasi_id}"&gt;
              &lt;button type="button" class="action-addButton" onclick="show"&gt;Ekle&lt;/button&gt;
  
          &lt;/td&gt;
      &lt;/div&gt;
  
  &lt;/table&gt;
  </code></pre>