> -----Original Message-----
> From: Wagner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 28, 2001 7:41 AM
> To: [EMAIL PROTECTED]
> Subject: Boolean operators...
> 
> 
> Hi,
> 
> I'm trying to do a comparisson with boolean operators and it is not
> working...
> 
> Example:
> $user1
> $user2
> $password1
> $password2 (this are the variables)...
> 
> The comparisson:
> 
> if (( $user1 ne "myself" || $password1 ne "pass1") && ( 
> $user2 ne "yourself"
> || $password2 ne "pass2")) {
> 
> print "dfdfsafsa";
> 
> }
> 
> it is not working.... is these boolean operators right???

Well, it "works". It evidently does not give the output
you are expecting. So what are you expecting it to be?

What you have written will print dfdfsafsa if BOTH users
have an invalid username or password. Is that what you
want?

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

Reply via email to