HOW TO USE if then else in tMap

One Star

HOW TO USE if then else in tMap

I want to know that how to use simple if then else in tMap
suppose i want to use this code
if ($x==2){
then use $var1=10;
}
else
{
use $var1=12;
}
Employee

Re: HOW TO USE if then else in tMap

Hi

Here is an example below.

Best Regards,
Michaël.
One Star

Re: HOW TO USE if then else in tMap

hi
i am now using subrouting for using if else .
i can't use these Conditional expressions as my problem is too complex and it loose it's readibility
thanks for your kind help

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download