Advanced Customization > Info*Engine User’s Guide > Info*Engine Custom Tag Reference > Info*Engine Tags > Supplied Library Tags (JSTL) > choose
  
choose
This tag allows for conditional evaluation with an alternative for evaluation failure (if/else). It requires embedded children for when/otherwise evaluations.
Syntax
<c:choose>
<c:when test="CONDITION">
<!-- processed when CONDITION evaluates to true -->
</c:when>
<c:otherwise>
<!-- processed when CONDITION evaluates to false -->
</c:otherwise>
</c:choose>
Example
<c:choose>
<c:when test="${group == null || group.elementCount==0}">
<!-- do when group named "group" is empty -->
</c:when>
<c:otherwise>
<!-- do when group contains elements -->
</c:otherwise>
</c:choose>