Conditional Expressions - 6.3

Talend Data Mapper User Guide

EnrichVersion
6.3
EnrichProdName
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend Studio

The IfThen (and IfThenElse) functions are used to make conditional execution of expressions. These function expressions are evaluated the same way as any other type of expression.

The IfThen function has two arguments:

  1. Condition - Requires an expression returning a Boolean value. If the result of the Boolean expression is true, the result of the IfThen function expression is the Then expression. If the result is false, the IfThen function expression returns no result.

  2. Then - The expression that provides the value to the IfThen function expression if the condition is true.

The IfThenElse function adds a third Else argument to the IfThen function. The value of the Else argument expression is returned if the condition argument evaluated to false.