Skip to main content

DTL <true>

Perform a set of activities when the condition for an <if> element is true.

Syntax

<if condition="1">
   <true>
     ...
   </true>
   <false>
     ...
   </false> 
</if>

Attributes

None.

Elements

Element Purpose
<annotation> Optional. A text string that describes the <true> element.
Most activities Optional. <true> may contain zero or more of the following elements in any combination: <assign>, <code>, <foreach>, <if>, <sql>, <subtransform>, or <trace>.

Description

A <true> element is used within an <if> to contain elements that need to be executed if the condition is true.

FeedbackOpens in a new tab