Advanced Customization > Info*Engine User’s Guide > Info*Engine Custom Tag Reference > Info*Engine Tags > Supplied Library Tags (JSTL) > when
  
when
Similar to if, but within a choose parent tag (represents the “if” of if/else logic). Provides JSTL support for Info*Engine tasks.
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>
Attribute Descriptions
Required attribute: test.
test
Contains the conditional statement to be evaluated. The test attribute supports operators [==, !=, <, >, <=, and >=]. The numeric operators require that the operands be of a numeric data type for comparison. Where possible, if the operands are of different data types then an attempt is made to coerce one to the other to attempt comparison. If one of the operands is a constant, then an attempt is made to coerce the variable to the constant. Conditional expressions of arbitrary complexity can be specified. Portions of expressions to be evaluated together must be grouped with ( ) and expressions can then be joined by [||, &&].
* 
&& must be encoded as ‘&amp;&amp;’.
This attribute is required and is also an expression.
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>