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
Don PierceDon Pierce 

Why am I getting the Error: Syntax error. Missing ')' when trying to save email template

I would assume the code below should work but I seem to have my syntax wrong. I guess I need to ask is this legal.  Trying to implement an If/else if logic.


  <apex:image width="180" height="40" id="theImage3" value="{!IF(LEFT(relatedTo.rstk__Buyer_Contact__c,3)='Lee',  
"https://geometricsinc123456--rspilot--c.cs97.content.force.com/servlet/servlet.FileDownload?file=0150U00000052qp","{!IF(LEFT(relatedTo.rstk__Buyer_Contact__c,3)='barb',"https://geometricsinc123456--rspilot--c.cs97.content.force.com/servlet/servlet.FileDownload?file=0150U00000050cW",""))}}"></apex:image>
 
Best Answer chosen by Don Pierce
Raj VakatiRaj Vakati
Here is the one 
 
<apex:image width="180" height="40" id="theImage3" value="{!IF(LEFT(relatedTo.rstk__Buyer_Contact__c,3)=='Lee',  
'https://geometricsinc123456--rspilot--c.cs97.content.force.com/servlet/servlet.FileDownload?file=0150U00000052qp',
IF(LEFT(relatedTo.rstk__Buyer_Contact__c,3)=='barb',  
'https://geometricsinc123456--rspilot--c.cs97.content.force.com/servlet/servlet.FileDownload?file=0150U00000052qp',''))}">
</apex:image>

 

All Answers

Raj VakatiRaj Vakati
Here is the one 
 
<apex:image width="180" height="40" id="theImage3" value="{!IF(LEFT(relatedTo.rstk__Buyer_Contact__c,3)=='Lee',  
'https://geometricsinc123456--rspilot--c.cs97.content.force.com/servlet/servlet.FileDownload?file=0150U00000052qp',
IF(LEFT(relatedTo.rstk__Buyer_Contact__c,3)=='barb',  
'https://geometricsinc123456--rspilot--c.cs97.content.force.com/servlet/servlet.FileDownload?file=0150U00000052qp',''))}">
</apex:image>

 
This was selected as the best answer
Don PierceDon Pierce
Thank You that was perfect.
Raj VakatiRaj Vakati
Mark it solved!
Raj VakatiRaj Vakati
I mean to mark it as best answer