equal operator expression

Highlighted
Eight Stars RAJ
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
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"

All Replies
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"

What’s New for Talend Spring ’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

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch