The following PHP in a node tpl file:
check_plain($node->field_room[$node->language][0]['value'])
Will print this in the page: Value1
What I want however is if the field has a value of 'Value1' then I want to print something else on the page. Ive tried the following but I think I have a syntax error:
if ( check_plain($node->field_room[$node->language][0]['value']) == "Value1" ) {
echo "<p>Print something else </p>";
}