From: Phillip Gawlowski Date: 2011-05-10T06:42:53+09:00 Subject: Re: Help with while condition OR condition On Mon, May 9, 2011 at 10:11 PM, 7stud -- wrote: > Brian Candler wrote in post #997379: >> >> Use '||' and '!' respectively and you won't have a problem. >> > > lol. Should've tried the code first: irb(main):001:0> val = 10 => 10 irb(main):002:0> ok = val < 3 || val > 5 => true irb(main):003:0> ok => true irb(main):004:0> a = true => true irb(main):005:0> b = !a => false Using *only* "or" or "not" obviously doesn't lead to the expected results, while using || and ! do. -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.