Hi,
In message "[ruby-talk:14268] Re: || .. or Question"
on 01/04/27, Marko Schulz <in6x059 / public.uni-hamburg.de> writes:
|Why is 'n == 3 or n == 5' not an expression? And
|why is 'n == 3 || n == 5' on the other hand one?
Simply precedence reason. In Ruby, statements are expressions that
can't be fit in argument list.
print a or b #=> print(a) or b
print a || b #=> print(a||b)
matz.