php inline if compare code example
Example 1: php ternary operator
(Condition) ? (Statement1) : (Statement2);
Example 2: one lin if statement php
<?php if ($requestVars->_name == '') echo $redText; ?>
(Condition) ? (Statement1) : (Statement2);
<?php if ($requestVars->_name == '') echo $redText; ?>