login - ruby conjunction and union operators -


this question has answer here:

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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -