cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle null or empty element

Sahil
Contributor

Hi,
I need to use null and empty condition in router. curretnly i am using:-
$ZSDATA.IDOC.EDL2.EDL4.BEL != “”
but i feel i am not handling it correctly.
Any inputs?

1 REPLY 1

j_angelevski
Contributor III

Hi @Sahil ,

Which value are you expecting to be null ? With your current condition it will only check if …BEL is not empty and if any value before it is null it will fail.

You can either try this with the .get() method. You can also try with Data Validator snap to check if a value is not present or if it is empty.