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

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog