From: Gregory Brown Date: 2008-07-31T05:20:49+09:00 Subject: Re: Loop behavior not understood (newbie) On Wed, Jul 30, 2008 at 4:19 PM, Gregory Brown wrote: > On Wed, Jul 30, 2008 at 4:17 PM, Gregory Brown > wrote: > >> 3. Avoided comparing to a boolean. if (something) is the same as if >> (something == false), unless you want to prevent nil objects from >> evaluating as false. > > Whoops. > > Here I mean: > > something=false > > then > > if(something) is the same as if(something == false) Sorry, I totally have confused myself (but hopefully not you). What you're looking for when you do if(something == false) is either unless(something) or if(!something) My point was that you don't need to explicitly check against a boolean, but then I made things much more confusing. Sorry for the triple post! -greg