<html>
<head>
        <title>The Conditional or Ternary Operator</title>
</head>
<body>

<h1>PHP output for the conditional (ternary) operator</h1>

<?php

        $count = -5;

        $count >= 0  
        ?  print("the number is positive") 
        :  print("the number is negative");

        print ("<br><br>");

        $number1 = 5;
        $number2 = 10;
        $maximum = ($number1 > $number2)  ?  $number1  :  $number2;
        print $maximum;
        
?>

<br/>
<p><b>...that's all Folks.  </b></p>




<?php include "zCode/include.php"; ?>              <!-- hyperlink to see the code -->
</body>
</html>