<wt:choose/>

Description

The contents of a when block are only rendered if its conditions are met. If no conditions are met, then the contents of the otherwise block is rendered

Attributes

Examples

Choose between multiple options

<wt:choose>
  <wt:when test="[wt:number] < 10">
    the number is less than 10
  </wt:when>
  <wt:when test="[wt:number] == 10">
    the number is equal to 10
  </wt:when>
  <wt:otherwise>
    the number is not less than or equal to 10
  </wt:otherwise>
</wt:choose>