Forum Discussion
endor_force
2 years agoNew Contributor III
Null values should be possible to identify in expressions in most places.
The following condition would check that BEL is not blank or null, split them up if you need to handle them separately in the router.
$ZSDATA.IDOC.EDL2.EDL4.BEL != "" && $ZSDATA.IDOC.EDL2.EDL4.BEL != null
If you need to do the opposite to catch if an element is null or blank you simply change the conditions:
$ZSDATA.IDOC.EDL2.EDL4.BEL == "" || $ZSDATA.IDOC.EDL2.EDL4.BEL == null
If you have scenarios where you can be missing the element completely you may have to also throw in a check first that the object exists at all.
If you are having null safe access in a mapper where you map BEL, it would make this redundant.
$ZSDATA.IDOC.EDL2.EDL4.hasPath("BEL")