I have an email template in which I need to display a person's role, but I need to determine whether the role starts with a vowel (eg Accountant) so that I can correctly display 'a' or 'an' before it in the sentence. Eg:
'I, as an Accountant.... or 'I, as a Lawyer...
Currently I have: I, as {!IF(BEGINS(object__c.Role__c,'A'),'an','a')} {!object__c.Role__c}, ...
but it's not returning anything for me. Can I use BEGINS here or do I need to use something else?
Here's what I see when I just put the options into the template. Neither the BEGINS or LEFT options return anything?