am trying to write a if else logic
howerver the logic seems to fail. The and condition statements don’t seem to work for me. I am referring to all string fields. Do we have a simple if else way to do things since this is frustrating.
my logic is
if(column($INV/Pelunasan Date$) = “” ){
“Belum INV”
}
else if (column($RALExpiredDate$) < “2023-10-01”){
“RAL Tidak Aktif”
}
else if (column($RALExpiredDate$) = “”){
“Tidak Ada RAL”
}
else if (column($RepossesDate$) <= ($RALExpiredDate$)){
“RAL Aktif”
}
else{
“RAL Tidak Aktif”
}
if you don’t have any calculations you can use Rule Engine node instead of Column Expressions node. It is simpler. Check here for list of options on if else logic in KNIME with more explanation and links:
To add, if you are going the column expression route be aware that the syntax for columns is slightly different: column("RALExpiredDate") instead of column($RALExpiredDate$)