Re: using an AND operator

2003-01-11 Thread Rob Dixon
Hi Susan "Susan Aurand" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Is there an AND operator in perl? For example; > > if ($SRF=1 and $SRL=1) {print"YES";) > > Any help would be appreciated. > Thank you - Susan > What you've written will work as it is, e

Re: using an AND operator

2003-01-11 Thread Rene Verharen
At 11-01-2003 09:48 -0500, Susan Aurand wrote: Is there an AND operator in perl? For example; if ($SRF=1 and $SRL=1) {print"YES";) print "YES"if ($SRF=1 && $SRL=1); Kind regards, Rene Verharen Please DO NOT reply to me personally. I'll get my copy from the list. -- To unsubscribe, e

Re: using an AND operator

2003-01-11 Thread WilliamGunther
In a message dated 1/11/2003 9:43:32 AM Eastern Standard Time, [EMAIL PROTECTED] writes: > if ($SRF=1 and $SRL=1) {print"YES";) You got the and right, but the conditional wrong. 2 equal signs for conditionals. So your example: $SRF = 1; $SRL = 1; if ($SRF==1 and $SRL==1) {print"YES";} #True o

using an AND operator

2003-01-11 Thread Susan Aurand
Is there an AND operator in perl? For example; if ($SRF=1 and $SRL=1) {print"YES";) Any help would be appreciated. Thank you - Susan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]