case

Processes its content if it is the first case child of the parent select tag that evaluates to true.

The tag evaluates to true if its value attribute equals (case-sensitive) the value attribute of it's parent select tag. Only the first case for a select tag to evaluate to true will process its contents.

See also <select> , <default>


Tag Summary
 
required <case value="value" />
 
full tag <case value="value" />

Required Attributes
 
value The value to compare with the value attribute of the enclosing select tag

There are no optional attributes
 

Example
 
<case
        value="red" >
   content
</case>

This tag will process its contents if the value of the enclosing select tag's value attribute is also "red" and if no case tag has evaluated true for the enclosing select tag.


© Copyright IBM Corporation 2000, 2006. All Rights Reserved.