--IssJQH/X6nZGf72c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2006.10.30 16:43, Peter Lynch wrote:
> Hi
>  I am still a beginner at Ruby, and have just arrived at this in my 
> learning curve.
> 
>  I would like to code
>      not(condition1) && not(condition2)
>  This is accepted in irb -
>      not(condition1) && condition2
>  but this produces a syntax error
>      condition1 && not(condition2)
> 
>  I do not get it (obviously). I do not even know what to ask in reply -
>  How do I code a compound condition, without introducing extra wrappers 
> like -
>      (not(condition1)) && (not(condition2))

Alternatives:

  (not condition1) and (not condition2)
  !condition && !condition

And my favourite:

  not (condition1 or condition2)

--IssJQH/X6nZGf72c
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFRbAb7Nh7RM4TrhIRAlO0AJ45ugYXpNxyn897FhmYIrzE6r/R9QCg5bW9
cl11Zx4kL/TI76Ti+ONa4xcXN
-----END PGP SIGNATURE-----

--IssJQH/X6nZGf72c--