function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
suneel.patchipulusu@gmail.comsuneel.patchipulusu@gmail.com 

Could any one correct this IF condition please!!!!

Scenario: I am comparing 2  custom fields in an Object. for this I created one formula field and I wrote like this but its giving syntax error

 

IF ((PB_List_Price__c != List_Price__c),
IMAGE("/img/samples/flag_red.gif","Red", 20, 20),
IMAGE("/img/samples/flag_green.gif","Green", 20, 20)
)

 

Thanks in advance

 

 

Best Answer chosen by Admin (Salesforce Developers) 
suneel.patchipulusu@gmail.comsuneel.patchipulusu@gmail.com

we should use <> instead of !=