Testing with And and Or Operators

Use the && ("And") operator to test for multiple true conditions:

<t:if test="condition1 && condition2">
Both conditions are true - display something
</t:if>

Use the || ("Or") operator to test for at least one true condition:

<t:if test="condition1 || condition2">
Either condition is true - display something
</t:if>

Use both operators for more complicated tests:

<t:if test="(condition1 || condition2) && condition3">
Either of the first two conditions are true and the third condition is true - display something
</t:if>