Yes. Need to be careful in use of or/and or || / &&. They have different 
precedence. Use ()'s to control if in doubt.

        if ( condition1 or condition2 or condition3 ) {

       }elsif ( other condtions) {

       }else {

       }

Wags ;)
-----Original Message-----
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 14:24
To: [EMAIL PROTECTED]
Subject: If question


Is it possible in Perl to compose and IF Statement as follows:


if [condition] or [condition]

Do this

else 

Do this
----------------------------------------------------
I know you can do the this

IF [condition]

else


My question is it possible to add the extra or condition?

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

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

Reply via email to