try

if ( $var == "TEST ONE" || $var == "TEST TWO" || $var == "TEST THREE") {

    do something;

}

luke
----- Original Message ----- 
From: "Dan J. Rychlik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 9:53 AM
Subject: [PHP] Control Structure problem


This doesnt work as expected.

if ( $var === "TEST ONE" || "TEST TWO" || "TEST THREE") {

    do something;

}

It returns true on all strings.  Ive tried using the or operator and the ==
but these fail as well.  Any Ideas?

-Dan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to