You can even do like this $var1 == 0 && $var2 == 1 ? print "hai" : print "bye"; Thanks and Regards, Prabu.M.A
"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 --------------------------------- Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.