Comparing the enum constants in thymeleaf May 14, 2023 by Tarik To compare with an enum constant, use the following code: th:if="${day == T(my.package.MyEnum).MONDAY}"