An essential part of programming is evaluating conditions using if/else and switch/case statements. If / Else statements are easy to code and global to all languages. If / Else statements are great but they can be too long.
here is the shorthand method for this problem. it is called “Ternary operator logic”.
"(condition) ? (true return value) : (false return value)"
$bResult = ($iVar> 7 ? true : false);