$variable = iif($expression, $truevalue, $falsevalue);
$i = 1; echo iif($i == 1, "i is one", "i is not one");
$i = 1; echo ($i == 1 ? "i is one" : "i is not one");