On 7/3/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote:
I want to script an "if" based on two conditions, var1=0 and var2=1.
Is there some quicker way to write this in one "if" statement like:

If ($var1=0 ?and? var2=1) {
                Do my stuff
}

I know I can nest a second if, but just hoped I could do it quicker :)

Thanks!
jlc

um, how about

if ($var1 == 0 and $var2) {
   #do stuff
}

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to