mardi 27 août 2019

Conditional in Thymeleaf with text template mode

I'm trying to process the thymeleaf template with plain text which includes the conditional operator:

<th:block th:if = "${[(${test})] == true}"> it works </th:block>

but i have such output:

<th:block th:if = "${true == true}"> it works </th:block>

Could you tell me, where did i go wrong?

Aucun commentaire:

Enregistrer un commentaire