Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: OR operator

by DrManhattan (Chaplain)
on Apr 10, 2003 at 00:54 UTC ( #249490=note: print w/replies, xml ) Need Help??


in reply to OR operator

Here's a correct syntax:
if ($color eq "red" || $color eq "blue" || $color eq "green") { # something }

-Matt

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://249490]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-10-18 21:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (250 votes). Check out past polls.

    Notices?