Hi -- On Mon, 28 Jul 2008, es_ wrote: > 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 It looks OK to me. What isn't working here? David -- Rails training from David A. Black and Ruby Power and Light: * Advancing With Rails August 18-21 Edison, NJ * Co-taught by D.A. Black and Erik Kastner See http://www.rubypal.com for details and updates!