From: es_ Date: 2008-07-28T21:44:48+09:00 Subject: Re: "or" and "and" -- still problems, brackets don't work Thanks for help! The problem is that 3 or's don't work: ?> st = 1 => 1 >> if st != 2 or st != 5 or st != 10 then ; st = 1 ; end => 1 >> ?> st = 2 => 2 >> if st != 2 or st != 5 or st != 10 then ; st = 1 ; end => 1 >> ?> st = 2 => 2 >> if st != 2 or st != 5 or st != 10 then ; st = 1 ; end => 1 >> st = 5 => 5 >> if st != 2 or st != 5 or st != 10 then ; st = 1 ; end => 1 >> st = 10 => 10 >> if st != 2 or st != 5 or st != 10 then ; st = 1 ; end => 1 Or with extra brackets: >> if (st != 2) or (st != 5) or (st != 10) then ; st = 1 ; end => 1 Hopefully the "include' option works fine and is beautiful, that's a great example of simplicity of Ruby I'm getting to appreciate. And about the brackets, Max Williams wrote, it doesn't work either. I tried if before. I also know the difference on "and" and "&&", I revived some articles on that while looking for some info. Greetz, Timo