Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi - I have a problem in applying the if/else condition in tMap. I am trying to do below validations in tMap.
if (in.stop_seq == 1 && in.message_status == 10 && in.message_type == 40) 'AA'
else if (in.stop_seq == 1 && in.message_status == 10 && in.message_type == 45) 'X3'
else if (in.stop_seq == 1 && in.message_status == 10 && in.message_type == 50) 'AF'
else if (in.stop_seq == 2 && in.message_status == 10 && in.message_type == 40) 'AB'
else if (in.stop_seq == 2 && in.message_status == 10 && in.message_type == 45) 'X1'
else if (in.stop_seq == 2 && in.message_status == 10 && in.message_type == 50) 'CD'
My source is a db2 and trying to populate a output filed based on this condition. As am new to this, tried all possible options but didn't work. Could you please help?
Note:In my screenshot attached, i tried with one input value to check and populate the target.
Thanks in advance!!!
Employees.Department_id != Department.Department_id? "Department ID is not valid" : Employees.Department_id == Department.Department_id? "null": Employees.Job_Id != Jobs.Job_Id? " Job ID is not Valid":Employees.Job_Id == Jobs.Job_Id?"null":"null"
row4.STARTDATE != null && (row2.STARTDATE.before(row4.ENDDATE))
row4.STARTDATE != null && (row2.STARTDATE.before(row4.ENDDATE))
(row4.STARTDATE != null && (row2.STARTDATE.after(row4.ENDDATE))) || row4.STARTDATE == null