0
I have this code that already works:
<span class="label" th:classappend="${usuario.ativo ? 'label-success' : 'label-danger'}"> </span></td>
but now I want the following:
<span class="label" th:classappend="${usuario == vazio ? 'label-success' : 'label-danger'}"> </span></td>
if the user is equal to empty the label will be label-Danger
but it didn’t work because I was wrong ... someone could help me?
${#strings.isEmpty(name)} found the answer link: https://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#strings
– Joyce SD