Spaces/Official ESi/Scriptaculous & Adv. Tags

choose-when-otherwise

Gerrit Oertel
posted this on April 28, 2009 14:38

<choose>
<when test="@status='Open'">Open</when>
<when test="@status='Closed'">Closed</when>
<otherwise>Full</otherwise>
</choose>

Like the if tag, but provides the "otherwise" tag that renders whenever none of the "when" tags evaluate to true.

  • test- The Boolean test to evaluate.
 
Topic is closed for comments