Choice - 7.3

Talend Data Mapper Functions Reference Guide

Version
7.3
Language
English
Product
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development > Designing Jobs
Last publication date
2023-01-05

Chooses a value from a set of values based on conditions.

The Choice function is used to provide a value according to a condition from a list of conditions. It is similar to a collection of nested IfThenElse functions but more compact.

Any number of ChoiceValue functions are provided as arguments. Each ChoiceValue function provides a condition and value pair; the value is emitted when the first condition is satisfied.

One of the ChoiceValue functions may be marked as a default value and that value is emitted if no other condition is satisfied.

Arguments

Variable arguments Add as many ChoiceValue functions as needed to specify conditions and values.