Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is this Talend syntax correct or am i missing a variable?
row1.Post_Key() == debit? "60" : "70"
The post_key() was undefined. Once I removed it from code, it worked.
row1.Post_Key.equals("debit")? "60" : "70"
This worked as well:
String.valueOf(row1.Post_Key.equals("debit")? "60" : "70")
Thanks gjeremy
HI Edi, glad you succeed ! you don't have to use String.valueOf() method it's already a String, and you can use the folowing syntaxe to make it null safe : "Debit".equals(row1.Post_Key)?"60":"70"
gjeremy,
Thanks. This was helpful.