title: Can you perform math functions inside of a PHP if statement?
body: <p>I am currently trying to create a "quiz" using a PHP form that will tell the user how similar their answers are to another user's. My first step is trying to display if the answer is the same as an answer that I  have already set. 
  <strong>My questions is if there is a way to perform math inside of an if statement? Or do I have to redefine the variable?</strong> </p>
  
  <pre><code>$color = $_POST['color'];
  
  $score = 0;
  
  if ($color=='lime'){
      $score + 1;
  }
  
  echo "You had $score answers matching the computer."
  </code></pre>