Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Multiple numeric not or compare in if statement

by haukex (Archbishop)
on Jul 02, 2020 at 07:44 UTC ( [id://11118795]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (($a == 3) || ($a ==  77) || ($a == 8))
    -- is equivalent to --
    if (($a != 3) && ($a !=  77) && ($a != 8))
    
  2. or download this
    if (($a == 3) || ($a ==  77) || ($a == 8))
    -- is equivalent to --
    if (!( ($a != 3) && ($a !=  77) && ($a != 8) ))
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-19 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found