title: How to properly use an if-statement with the <option> tag?
body: <p>So what I have is an array of things. The items in the array are put into a drop down with the  tag, nothing new or complicated about that but here's the (current working) code anyway:</p>
  
  <pre><code>&lt;?php foreach($roles as $role): ?&gt;
      &lt;option value="&lt;?php echo $role['id']; ?&gt;"&gt;&lt;?php echo $role['name']; ?&gt;&lt;/option&gt;
  &lt;?php endforeach ?&gt;
  </code></pre>
  
  <p>Now what needs to happen, is that if the $role['name'] is "Basic", it should not be displayed. I have been trying (and googling) for this, and I have been unsuccessful. I didn't think it was that big of a deal.</p>
  
  <p>Here's what I'm trying:</p>
  
  <pre><code>&lt;?php foreach($roles as $role): ?&gt;
      &lt;?php if(!$role['name'] == "Basic") { ?&gt;
      &lt;option value="&lt;?php echo $role['id']; ?&gt;"&gt;&lt;?php echo $role['name']; ?&gt;&lt;/option&gt;
      &lt;?php } ?&gt;
  &lt;?php endforeach ?&gt;
  </code></pre>
  
  <p>When I try that it doesn't add any fields to the drop down at all, so I'm obviously missing something here. Any tips would be appreciated, thanks!</p>