I have an enum, Constants:
Constants
enum Constants { ONE,TWO,THREE; }
How can I compare the enum Constants in Thymeleaf.
Thank
Try this :
th:if="${ day.toString() == 'MONDAY'}"