odegbon has asked for the wisdom of the Perl Monks concerning the following question:
I was just wondering if I could make comparison by joining a bunch of if statements with 3 "ANDs" like so:
if(($a == 1 && $b < 2) && ($d < 4 && $e >= 6)){ do something ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: logical AND "&&"
by toolic (Bishop) on Jan 31, 2010 at 02:00 UTC | |
by odegbon (Initiate) on Jan 31, 2010 at 02:13 UTC | |
|
Re: logical AND "&&"
by Corion (Patriarch) on Jan 30, 2010 at 23:29 UTC | |
|
Re: logical AND "&&"
by YuckFoo (Abbot) on Jan 30, 2010 at 23:32 UTC | |
by odegbon (Initiate) on Jan 30, 2010 at 23:42 UTC | |
by YuckFoo (Abbot) on Jan 30, 2010 at 23:59 UTC | |
| |
|
Re: logical AND "&&"
by ikegami (Patriarch) on Jan 31, 2010 at 17:05 UTC | |
by Anonymous Monk on Jan 31, 2010 at 17:14 UTC | |
by ikegami (Patriarch) on Jan 31, 2010 at 17:25 UTC |