比较它们中的两个变量:属性名称不能为null或为空

Compare two variable in thymeleaf it throw runtime exception
org.attoparser.ParseException: Attribute name cannot be null or empty
I'm comparing this statement regularPrice != salePrice.

<div th: if="${batch.regularPrice} &lt; ${batch.salePrice}">
     <del class="dis-price"><i class="fa fa-rupee"></i>
         <span th:text="${#numbers.formatDecimal(batch.regularPrice, 0, 'COMMA', 0, 'POINT')}"></span>
     </del>
</div>