htmanning has asked for the wisdom of the Perl Monks concerning the following question:
What am I doing wrong? This does not work:
if (($username eq "$security") && ($type ne "Check In" || $type ne + "Check Out")) {
But this does work:
if (($username eq "$security") && ($type ne "Check In")) {
I need to add several more arguments for $type. If the $username is correct and 3 or 4 $types are not true, I want to print something, but I can't get it to work. I'm missing something.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: And plus OR
by tybalt89 (Monsignor) on Jan 12, 2017 at 21:44 UTC | |
|
Re: And plus OR
by AnomalousMonk (Archbishop) on Jan 12, 2017 at 21:40 UTC | |
|
Re: And plus OR
by Marshall (Canon) on Jan 12, 2017 at 23:23 UTC | |
|
Re: And plus OR
by Anonymous Monk on Jan 12, 2017 at 22:09 UTC | |
|
Re: And plus OR
by ablanke (Monsignor) on Jan 15, 2017 at 13:52 UTC |