I am using this code on a button in Salesforce -- onClick JavaScript :
Is this is the correct way:
if('{!Account.CSS_CustomerID__c}' != 'null'){
//do something
}
Should I do like this --1
if('{!Account.CSS_CustomerID__c}' != null){
//do something
}
Should I do like this --2
if('{!Account.CSS_CustomerID__c}' !== null){
//do something
}
Or there is any other way?
ANSWER : This worked for me
if('{!Account.CSS_CustomerID__c}' !== null){
//do something
}