equal operator expression

Highlighted
Eight Stars
Eight Stars

equal operator expression

Hi Talend Folks,

                      I need to check equal condition for three column.

whether it is possible or not?

if possible means please tell me? 

whether below Sample expression correct or wrong?

Below Sample expression column is int data type.

 

sample expression:

(row1.Base == row2.PL == row3.Loss)?"Ok" : "Not Ok"

Thanks
RAJ

Accepted Solutions
Highlighted
Eight Stars

Re: equal operator expression

You need to explicitly compare all 3 operands:

((row1.Base == row2.PL) && (row1.Base == row3.Loss))?"Ok" : "Not Ok"

View solution in original post


All Replies
Highlighted
Eight Stars

Re: equal operator expression

You need to explicitly compare all 3 operands:

((row1.Base == row2.PL) && (row1.Base == row3.Loss))?"Ok" : "Not Ok"

View solution in original post

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog