tmap update output string if input string is null

Five Stars

tmap update output string if input string is null

Hey folks,

 

Please see pic attached. I am trying to catch if an input string is null if so I want to replace it with "Unknown" in the output row. I have tried several different ways but can't get it working any help is appreciated. 

 

Neil. 

 

Tmap Null.jpg


Accepted Solutions
Highlighted
Forteen Stars

Re: tmap update output string if input string is null

hi Neil,

 

as described it must be 

 

row5.Aligment==null?"Unknown":row5.Aligment

condition?true:false

 

in your case if null it continue to be null, and replace all not null

-----------

All Replies
Highlighted
Forteen Stars

Re: tmap update output string if input string is null

hi Neil,

 

as described it must be 

 

row5.Aligment==null?"Unknown":row5.Aligment

condition?true:false

 

in your case if null it continue to be null, and replace all not null

-----------
Five Stars

Re: tmap update output string if input string is null

Thanks very much worked perfectly!

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

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download