Mike Here

        Can someone tell me why this simple bit of code doesn't work? The "If" statement prints even when it's false.


$x = 20;
$y = 15.5;
$z = .05;
$a = $x+$y;

print "a equals $a.\n";

if ($a = 20) {print "a is equal to 20.\n";}

else {print "a is not equal to 20.\n";}

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.417 / Virus Database: 233 - Release Date: 11/8/2002

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to