title: Google Script using if else if not correctly reading variable
body: <p>I have a function to send emails when a form submits (onformsubmit) and have used If/Else If/Else to determine the correct recipient from one of the form selections. The Value in the form selection is the same as in the script.</p>
  
  <p>At the top I have the below set to pick up the 4th column value. This is working as it is also in the content of the email.</p>
  
  <pre><code>var Company = e.values[3]; 
  </code></pre>
  
  <p>I then have</p>
  
  <pre><code>if(Company == 'Company 1 [AA]') {
     MailApp.sendEmail("person1@email.com", subject, emailBody, optAdvancedArgs);
     } 
  else if(Company == 'A Company 2 [CC]') {
     MailApp.sendEmail("person2@email.com", subject, emailBody, optAdvancedArgs);
     }
  else if(Company == 'Company 3 (CHINA) [EE]' ) {
     MailApp.sendEmail("person3@email.com", subject, emailBody, optAdvancedArgs); 
     }
  else {
     MailApp.sendEmail("catch@email.com", subject, emailBody, optAdvancedArgs);
     }
  </code></pre>
  
  <p>My issue is that Company 2 is dropping straight through to the else row and sending to catch@email.com but the rest are working fine (actually have 8 companies in the full code, only 1 has the problem).</p>
  
  <p>Not sure why only having an issue with one of them unless it is the [CC] in the value.</p>