From: Robert McGovern Date: 2002-10-15T06:19:48+09:00 Subject: Re: & operation and if statment >>$ irb >>irb(main):001:0> data = 0x00 >>0 >>irb(main):002:0> puts "ouch" if (data & 0x80) >>ouch > > > Don't forget that 0 is true. Duh, thank you, I had compelely forgotten that. I still find myself easily slipping into "other language mode". Rob -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==---------- http://www.newsfeed.com The #1 Newsgroup Service in the World! -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----