You need to join this project to post message / question. See Help for details.

true and foobar

What's the final result?
Added by icy 12 months ago  »  Votes: 2/2

and will return false, or the last object in the expression:

1 true and :foobar         # => :foobar
2 :foobar and true         # => true
3 :foo and :bar and :other # => :other

So, be careful when you're using and in the return value :)


Comments

Added by ruby about 1 month ago

The last object is returned as the operator needs to check all its elements