Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: OR operator

by DrManhattan (Chaplain)
on Apr 10, 2003 at 00:54 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://249490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2024-03-28 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found