Short condition in PHP

If you want a condition on one row, embedded in HTML this can come handy.

<?php print ($node->body == "") ? $profile_text : variable_get('profile_text', "");?>
Knowledge keywords: