I have below piece code where I want to assign 'No Value' to the string (Oldvalue) if it is Null. I have tried it by several approaches like (String.isblank etc), but not getting desired output. Can someone please help?
Class code snippet:
if(oldValue==null) oldvalue='No Value'; system.debug('Oldvalue@'+oldvalue); aht.Alert_Text_vod__c = alts.Alert_Text_abv__c + ' ' + oldvalue +' to ' + newValue;