You can use this:
You can use this : if(String.isBlank(record.txt_Field__c)){ Boolean isBlank = true; } The above is same as : The above is same as:
if (record.txt_Field__c == null || record.txt_Field__c == '' || record.txt_Field__c.trim.length() == 0) { Boolean isBlank = true; }