Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: 'or' vs '', '&&' vs 'and'

by Parham (Friar)
on Apr 01, 2002 at 19:11 UTC ( #155823=note: print w/ replies, xml ) Need Help??

in reply to 'or' vs '', '&&' vs 'and'

i was taught to use "or" and "and" instead of || and && and was never told why. Later on i discovered what the rest of the monks have already stated. With "or" and "and" you have the advantage of including or not including parentheses whereas with "||" and "&&" they must be included.

Comment on Re: 'or' vs '', '&&' vs 'and'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://155823]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (16)
As of 2015-11-25 15:47 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (681 votes), past polls