if (condition or condition) { do that; }

ex:

if ($foo = 3 or $foo = 6) {}
if ($foo = 3 || $foo = 6) {}
if ($foo eq "bar" or $foo eq "baz") {}
if ($foo eq "bar" || $foo ne "baz") {}
etc etc

HTH
Etienne

Lance Prais wrote:
> 
> 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]

-- 
Etienne Marcotte
Specifications Management - Quality Control
Imperial Tobacco Ltd. - Montreal (Qc) Canada
514.932.6161 x.4001

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

Reply via email to