<html>
<! IfThen2.php                                                >
<! Chapter 4, Oracle Database XE PHP Web Programming          >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This script demonstrates an if-then-else statement with    >
<! two nested expressions, which is a compound evaluation.    >
<head>
<title>
  Demonstrating an if-else statement.
</title>
</head>
<body>
<?php
  // Declare a variable by assigning a value.
  $myVar = -1.234;

  // Check if only one of two expression is true.
  if (($myVar) xor (1 == 1))
  {
    // Print the output as one statement.
	print "This is impossible to reach.";
  }
  else
  {
    // Print a failure message.
    print "The \$myVar variable is [".$myVar."] and 1 does equal 1.";
  }
?>
</body>
</html>
