This page is READ-ONLY. It is generated from the old site.
All timestamps are relative to 2013 (when this page is generated).
If you are looking for TeX support, please go to VietTUG.org

true and foobar

What's the final result?
Added by icy almost 2 years 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 11 months ago

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