Skip to main content
************* PRERELEASE CONTENT *************
Previous section

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>
Copy code to clipboard

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.