Can someone help me to write a code that checks if string is empty and returns null if its true?
I have this now:
If(Not IsNothing(role.ROLE_DESC),role.ROLE_DESC.ToString(),Nothing)
But it only checks if role_desc is null, but I need to also check if its value is not an empty string and if so, then return null.