I want to be able to show or hide a text snippet on a node based on whether or not it was tagged with a specific taxonomy term.
Something along the lines of:
if (term('green')) {
echo"this is green";
}
else {
echo "not green";
}
What is the Drupal way of doing this?