title: How to compare variables as String?
body: <p>If the <code>myData.value</code> is <code>blablabla</code> then variable <code>tmp</code> should be equal <code>ABC</code>:</p>
  
  <pre><code> &lt;div th:with="tmp=*{myData.value} eq 'blablabla' ? 'ABC' : 'XYZ'"&gt;
        &lt;br&gt;
        &lt;span th:utext="*{myData.value}"&gt;___&lt;/span&gt;
        &lt;br&gt;
        &lt;span th:utext="${tmp}"&gt;___&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Output</strong>:</p>
  
  <blockquote>
    <p>blablabla<br>
    XYZ</p>
  </blockquote>