talend - Compare String using tMap -
i using talend prepare dataware. want compare string contents of column using tmap component , create variable store in db. problem ==
operator not give right result (example: row2.recipient == "text"?"text":""
""
) , if use .equals
errors when executing.
you error if row2.recipient null, , "==" should not used when comparing strings. correct syntax :
"text".equals(row2.recipient)?"text":""
then prevent nullpointerexceptions.
Comments
Post a Comment