Java Thymeleaf: Could not parse expression
<p>I have faced with the error:</p>

<pre><code>Could not parse as expression: "${consultation.getStatus().toString()}!=SCHEDULED &amp;&amp; consultation.getStatus().toString()}!=RECEIVED"
</code></pre>

<p>In the line :</p>

<pre><code>&lt;span th:if="${consultation.getStatus().toString()}!=SCHEDULED &amp;amp;&amp;amp; consultation.getStatus().toString()}!=RECEIVED" th:text="${consultation.getStatus()}"&gt;&lt;/span&gt;
</code></pre>

<p>i cannot figure out why Thymeleaf is complaining?</p>

<p>Update:
I am trying to check an attribute if it is equal to <code>SCHEDULED</code>  or <code>RECEIVED</code></p>