in reply to Nested testing of many conditions--a better way?
Update: Added parens around 'or' condition.
ambrus++ is correct. I should know better than to post without testing.
It's very much a personal thing, but I'd opt for the latter, but I'd format it like this:
if ( $today > $start and $today < $stop and $today != $notthisday[0] and $today != $notthisday[1] and $today != $notthisday[2] and ( $day == $dayofmon[0] or $day == $dayofmon[1] ) ) { print "$today is the day."; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Nested testing of many conditions--a better way?
by halley (Prior) on Mar 23, 2004 at 14:52 UTC | |
|
Re: Re: Nested testing of many conditions--a better way?
by ambrus (Abbot) on Mar 23, 2004 at 15:19 UTC |