Sunday, September 11, 2016

what is the difference between != null and != ' '

!= null checks if the value is equal to null 
!= ' '  will check for a blank

id field can be either hold a 15 or 18 digit id or can be null but not blank
for string use string.isblank() returns true if string is space ,empty or null

No comments:

Post a Comment