#1 2011-02-22 19:18:29

stesappo
New member
Registered: 2010-11-13
Posts: 1

logical expression

Tags: [expression, java]

Hi all,
I need to have a logical expression (to use in tMap for transform data) just like the IF in excel or CASE WHEN in Oracle.
Do someone know how to do or, better, do someone has an expression already done?

Thanks in advance
Steven

PS I'm using TOS 4.1.2

Offline

#2 2011-02-28 01:41:00

shong
Talend team
Registered: 2007-08-29
Posts: 10297
Website

Re: logical expression

Hi
We use the if ...else ... logical expression in tMap like this:
row1.name.equals("Shong")?"the value if it is true":"the value if it is false"

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

Board footer

Powered by FluxBB