cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Check Incoming data is null

AdityaReja
New Contributor III

Iโ€™m getting data out of LDAP and i nees to route it to two different mappers depending upon whether the incoming data is null or not. But iโ€™m unable to do thisโ€ฆ any solution?

8 REPLIES 8

robin
Former Employee

Have you tried the Router Snap?

AdityaReja
New Contributor III

what condition to give i router snap ?

x==null (do if x is null)
x!=null (do if x is NOT null)

BTW there are TWO types of null in snaplogic.

  1. The above, where the field exists and LITERALLY has a value of null
  2. The all too common case of a field that hasnโ€™t be defined because no row joined on an outer condition, or it wasnโ€™t read, etcโ€ฆ

What I spoke of earlier is for the 2nd case I listed above
For case number 2, it would be

!(โ€˜xโ€™ in $)
(โ€˜xโ€™ in $)

So remember, in some cases a field will not be created for a field that does not have a value and, in those cases, you have to check if the field exists.

i need to check for entire input stream not for one particular variable in $, like if the $ is null or not