Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
LanX new life as prawn ... hmmm
[Eily]: LanX that sounds fishy to be honest

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2017-06-29 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (662 votes). Check out past polls.