title: if a variable equals a letter or word
body: <p>Think it is quite obvious what i am trying to do. If gender variable is M then display the male image. I have tried a few things such as removing an =, but i am not having any success. </p>
  
  <p>Have i got this completely wrong? </p>
  
  <pre><code>if ($gender == M){
  &lt;img src='images/male.png' width='45px' height'45px'&gt;
  }else{
  ($gender == F){
   &lt;img src='images/female.png' width='45px' height'45px'&gt;
  }else{
  ($gender == HIDE){
  &lt;img src='images/uni.png' width='45px' height'45px'&gt;
  }
  </code></pre>