From: Nicholas Van Weerdenburg Date: 2004-05-20T09:47:07+09:00 Subject: Re: Zero is true ... whoda thunk? nonzero? returned nil instead of false for me. Shouldn't it return false? Eric Hodel wrote: >David Naseby (david.naseby@eonesolutions.com.au) wrote: > > > >>> def got_milk? >>> @milk_volume.zero? >>> >>> >>Bugger. I mean !@milk_volume.zero? of course. So this whole problem could >>be avoided by making 0==false, thus proving your point. THIS is why I don't >>post normally.... >> >> > >How about: > >@milk_volume.nonzero? > > >