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