From: "Einar Magnús Boson" Date: 2008-12-04T15:05:27+09:00 Subject: Re: 'and' keyword? On 04.12.2008, at 05:38 , list. rb wrote: > Because puts("hi") yields nil, the second item never gets called: > puts "hi" and puts "bye" if true > > I can work around it with these: > !puts "hi" and puts "bye" if true > puts "hi";puts "bye" if true > [puts("hi"), puts("bye")] if true > > --But was hoping there was a more aesthetic one liner out there that > can use > 'and'.. > > Thanks in advance!! How about puts "hi", "bye" if true einarmagnus