Skip to main content

DTL <default>

Execute contents if none of the <case> elements in a <switch> element evaluate to true.

Syntax

<switch>
   <case condition="1">
   ...
   </case>
   <default>
   ...
   </default> 
</switch>

Attributes

None.

Elements

Element Purpose
<annotation> Optional. A text string that describes the <default> element.

Description

The <default> element appears at the end of the <switch> element, and is executed if none of the <case> elements evaluate to true.

FeedbackOpens in a new tab