L
list. rb
[Note: parts of this message were removed to make it a legal post.]
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!!
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!!