login - ruby conjunction and union operators -
this question has answer here:
- difference between “and” , && in ruby? 6 answers
so have (accidentally) discovered ruby allows following syntax:
if foo , bar
or
if foo or bar
.
how (if @ all?) different from
if foo && bar
if foo || bar
are operators different? how?
are operators different?
yes per operator precedence.
how?
for more information see difference between “and” , && in ruby?
, difference between “or” , || in ruby?
Comments
Post a Comment