You need to sign in to do that
Don't have an account?
rdg
Help with simple IF statement in a VF email template
Hi there,
New to this.
Trying a (what probably is so simple) IF statement in a VF email template where I want an output "He" or "She" depending on the a Gender field in a related lookup record.
Here is my code which keeps returning a syntax error;
<apex:outputText value="{!IF ({!relatedTo.Custom_Contact__r.Gender__c} =='Male', 'He', 'She')}"></apex:outputText>
Thank you in advance!
regards,
Al
<apex:outputText value="{!IF (relatedTo.Custom_Contact__r.Gender__c =='Male', 'He', 'She')}"></apex:outputText>
All Answers
<apex:outputText value="{!IF (relatedTo.Custom_Contact__r.Gender__c =='Male', 'He', 'She')}"></apex:outputText>
Awesome!
Thank you very much.