PHP inline if
/* most basic usage */
$var = 5;
$var_is_greater_than_two = ($var > 2 ? true : false); // returns true
Allen
/* most basic usage */
$var = 5;
$var_is_greater_than_two = ($var > 2 ? true : false); // returns true
<?php echo ($requestVars->_name == '') ? $redText : ''; ?>
echo ($var1 >= $var2) ? 'this is true' : 'this is false';
<?php if ($requestVars->_name == '') echo $redText; ?>