From: Kent Dahl Date: 2001-10-01T11:28:26+09:00 Subject: [ruby-talk:21848] Re: got boolean short circuiting? Phlip wrote: > The above line croaks because the right half of the 'or' gets evaluated > even if the left side is true. Time for me to Replace Conditional With > Query. What version are you using? I'm running: ruby 1.6.4 (2001-06-04) [i586-linux-gnu] def a print "a" true end def b print "b" false end def c print "c" true end def test if a or b and c print "_test_" end end test puts #=> ac_test_ If I understand you correctly, I should have gotten "abc_test_" -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.�k.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/