开发者

Ruby logical operators [duplicate]

This question already has answers here: 开发者_C百科 Closed 12 years ago.

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?

  1. && vs. and
  2. || vs. or


The "word" versions have lower precedence than the "symbol" versions. In fact, they have even lower precedence than assignment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜