Nesting IF THEN ElSE Logic with columns with same values in tMap String Method

Seven Stars

Nesting IF THEN ElSE Logic with columns with same values in tMap String Method

If you had three columns that only have certain values but they only appear once in the three columns. Can you Nest the Three Columns into One Output Column that has True or False Logic in it in this way

 

Column 1 + Column 2 + Column 3.equals("Do Not Call")?"True" : "False"

 

or would you have to seperate each IF THEN ELSE Statement for each column with ":"

 

Column 1.equals("Do Not Call")?"True" : "False" : Column 2.equals("Do Not Call")?"True" : "False" : Column 3.equals("Do Not Call")?"True" : "False"

Was just curious what the proper syntax is for this specific Logic

 

Let me know

 

Thanks,

 

Andrew

 

 

Forteen Stars

Re: Nesting IF THEN ElSE Logic with columns with same values in tMap String Method

Hi,

 

if I understand correct the logic, it is:

 

Column 1.equals("Do Not Call")&&Column 2.equals("Do Not Call")&&Column 3.equals("Do Not Call")?"True":"False"
-----------

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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

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