Skip to main content

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;  } 
You can use this : if(String.isBlank(record.txt_Field__c)){ Boolean isBlank = true;  } 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;  } 

You can use this:

if(String.isBlank(record.txt_Field__c)){ Boolean isBlank = true; } 

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; } 
added 158 characters in body
Source Link
Walker
  • 2.4k
  • 5
  • 37
  • 73
You can use this : if(String.isBlank(record.txt_Field__c)){ Boolean isBlank = true; } 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;  } 
if (record.txt_Field__c == null || record.txt_Field__c == '' || record.txt_Field__c.trim.length() == 0) { Boolean isBlank = true; } 
You can use this : if(String.isBlank(record.txt_Field__c)){ Boolean isBlank = true; } 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;  } 
Source Link
Walker
  • 2.4k
  • 5
  • 37
  • 73

if (record.txt_Field__c == null || record.txt_Field__c == '' || record.txt_Field__c.trim.length() == 0) { Boolean isBlank = true; }