title: Drupal - Conditional PHP if node is tagged with a certain taxonomy term
body: <p>How can I write some conditional PHP to do something if a node is tagged with a certain term? </p>
  
  <p>I want to alter my node-type.tpl.php file, this code is for the node page, not taxonomy listing pages.</p>
  
  <p>Ideally id like to use the term's text name, not's its numeric name. This just makes it easier for me when im looking at the code later. </p>
  
  <p>To be specific, I actually want to print some stuff unless the node has a certain tag.</p>
  
  <p>Thanks </p>
  
  <p>UPDATE</p>
  
  <p>I got his code from the content template module:</p>
  
  <pre><code>&lt;?php print $node-&gt;taxonomy[2]-&gt;name ?&gt;
  </code></pre>
  
  <p>It prints the term name if the term ID is 2. So could it be modified to print something else if the term ID is 2?</p>