You need to sign in to do that
Don't have an account?
KSTNE
Need some help with the IF THEN statement
Hi,
We are working on email templates and we cannot figure out how to do the IF THEN properly. Does Salesforce has an 'OR' operator ?
Basically what we have is 3 checkboxes, when one or more is checked we want the code to show "GOOD" when none are checked then show "BAD"
The code below is obviously wrong,
{!IF((Opportunity.fullcatalog__c==FALSE) OR (Opportunity.custommanudiv__c=FALSE) OR (pportunity.contactme__c=FALSE), "GOOD", "BAD")}
We also tried the "CASE" statement, but it did not work.
Thanks in advance!
> Does Salesforce has an 'OR' operator ?
Yes it does, but the syntax for 'OR' operator as opposed to OR() function is using double pipe: ||
alternative is using OR() function
All Answers
> Does Salesforce has an 'OR' operator ?
Yes it does, but the syntax for 'OR' operator as opposed to OR() function is using double pipe: ||
alternative is using OR() function
The OR() function worked well, thank you!