One Star

Using conditional statement in tmap in Talend

Hi,
Can anyone help on how to use conditional statements in tmap component? As I am new to Talend Open Studio, I am finding it difficult to implement some functionalities.
I need to use unconnected lookup funtionality as in Informatica to compare two different columns in two different tables and return the value of another column if the comparison is true.
When I am using conditional statement, I am facing error as given below:
Condition: (row2.ORGIN_SITE_ABBR == row3.SITE_ABBR) ? row3.MPS_ID : -1
Error Message: row2Struct cannot be resolved to a type.
Can anyone please help on this?
2 REPLIES
One Star

Re: Using conditional statement in tmap in Talend

I think you are missing DOT "." between "row2" and "Struct", probably it should be row2.Struct??
Community Manager

Re: Using conditional statement in tmap in Talend