From: Eric Hodel Date: 2004-05-19T11:02:10-07:00 Subject: Re: Zero is true ... whoda thunk? --Vhqu5qQ3bjg0ZI9i Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable David Naseby (david.naseby@eonesolutions.com.au) wrote: > > def got_milk? > > @milk_volume.zero? >=20 > Bugger. I mean !@milk_volume.zero? of course. So this whole problem could > be avoided by making 0=3D=3Dfalse, thus proving your point. THIS is why I= don't > post normally.... How about: @milk_volume.nonzero? --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --Vhqu5qQ3bjg0ZI9i Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFAq6EiMypVHHlsnwQRAhCNAJ4g6CbcXfhSzVyEYsj2S/WhcLXbrQCfXNfK Zv8P3fgTpJy0QBElINraJdw= =ck+R -----END PGP SIGNATURE----- --Vhqu5qQ3bjg0ZI9i--