'Truthy' and 'falsy' expressions

Using booleans as rendering conditions

th:if th:unless
true will be rendered won't be rendered
false won't be rendered will be rendered

Boolean and conditional operators

A B ${A or B} ${A} or ${B} ${A and B} ${A} and ${B} ${!A} !${A} ${not A} not ${A}
true true
true false
false true
false false

#bools utility object

Array #bools.arrayIsTrue() #bools.arrayIsFalse() #bools.arrayAnd() #bools.arrayOr()
[0, 0]
[0, 1]
[1, 1]