Possible Duplicate:
Is there any wisdom behind “and”, “or” operators in Ruby ?
What is the difference, if any, between the following pairs of logical operators?
- && vs. and
- || vs. or
Possible Duplicate:
Is there any wisdom behind “and”, “or” operators in Ruby ?
What is the difference, if any, between the following pairs of logical operators?
The "word" versions have lower precedence than the "symbol" versions. In fact, they have even lower precedence than assignment.