title: Simple check for character in char array in C
body: <p>I am new to C. This code runs on a Flyport module and compiles on their own IDE but I should think my error should be easy to spot for anyone familiar with C.</p>
  
  <p>I can't get this code to compile despite changing almost everything, what am I doing wrong?</p>
  
  <pre><code>char string_serial[50]="starting Value";    
  
  if (string_serial[0] = "*")
          {   
  
              UARTWrite(2,"First Char OK");
              UARTWrite(2,"\r\n");
  
              else 
  
              UARTWrite(2,"First Char NOT OK");
              UARTWrite(2,"\r\n");
  
          }
  </code></pre>
  
  <p>If it's not obvious I am trying to check if character 0 in the array is *. </p>
  
  <p>Thanks</p>