Hi @All, I am comparing two columns in saved searc...
# suitescript
v
Hi @All, I am comparing two columns in saved search like CASE WHEN {parentcustomer.x} != {y} THEN 1 ELSE 0 END and if its 1 i should get a row. But when there is an empty value in x and value present in Y, I am not getting rows. Any idea how to handle empty values? Thanks in advance.
a
@vilaspadole maybe you could try adding one more condition
to handle the empty value for x
not sure if you have to use AND or OR you could relate with your logic
v
I put concatenate on both values and it worked
👍 1
p
For future reference use
IS NULL
s
or NVL() to handle a null value and assign it a value