<html>
<head>
        <title>This my fourth PHP page</title>
</head>
<body>
    <h1>Testing Variables with 'if'</h1>

<?php
        $name   = "Sam";
        $number = 0;

        if ( $name == "Sam")                            //if the name variable == sam
            print "The variable value is $name <br/>";  //print it

        if ( $name )                                    //if the name variable has value
            print "The variable has a value <br/>";     //print it
        else
            print "The variable is not defined or is empty <br/>";      
        

        print "<br />";

        if ($number == 3)                                //if number variable == 3
            print "The variable value is $number <br/>"; //print it

        if ( ! $number)                                  //if number has not been defined, or 0
            print "The number is not defined or is 0";          
        else
            print "The number has a value";             
?>

<p><b>...and here you have.  That is it.</b></p>

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