do this OR that

From: Date: Thu, 01 Dec 2005 12:40:16 +0000
Subject: do this OR that
Groups: php.general 
Request: Send a blank email to php-general+get-226708@lists.php.net to get a copy of this message
Group, I have a function that grades a quiz. I want to show a page if the student scores 80% or above. Currently, the script reads: <snippet> $total = ($mygrade/$quiz->grade) ; if ($total > .80) { </snippet> That means that if you score 80% precisely, you don't get the follow-up script. I believe I should re-write it like this: <snippet> $total = ($mygrade/$quiz->grade) ; if ($total > .80 | .80) { </snippet> Is that right? Thanks in advance for your help. Jud. -- Judson Vaughn jud@seitervaughn.com | jud@bizville.com Seiter Vaughn Communications 12455 Plowman Court Herndon, VA 20170 703.450.9740 svc

« previous php.general (#226708) next »