Null value is showing as not null

Hi,

I think the content may be not null but empty string.
Can you try the following expression?

in_TransactionItem.SpecificContent("Name") is Nothing OrElse String.IsNullOrEmpty(in_TransactionItem.SpecificContent("Name").ToString) OrElse
in_TransactionItem.SpecificContent("Age") is Nothing OrElse String.IsNullOrEmpty(in_TransactionItem.SpecificContent("Age").ToString) OrElse
in_TransactionItem.SpecificContent("Item Type") is Nothing OrElse String.IsNullOrEmpty(in_TransactionItem.SpecificContent("Item Type").ToString) OrElse
in_TransactionItem.SpecificContent("Dept") is Nothing OrElse String.IsNullOrEmpty(in_TransactionItem.SpecificContent("Dept").ToString)

Regards,

1 Like