You would most likely get better results if you tried a While loop instead of an if else block. Would be a bit easier to set up as well. IMHO
Kerry LeBlanc Materials Auditor Process Owner 75 Perseverence Way Hyannis, MA. 02601 1-508-862-3082 http://www.vsf.cape.com/~bismark -----Original Message----- From: Duane Koble [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 10:34 AM To: [EMAIL PROTECTED] Subject: Compound if statement. I am working on a program that requires that three statement be true in order to set a hash. The problem I am having is getting the if statement to work correctly. I seems to me that if two of the statements are true it proceeds through the if statement. I need all three to be true before it proceeds through the statement. I have copied the if statement below. Any help will be appreciated. Thanks Duane if ($HOUR_24 => $PRIME_TIMEFRAME && $HOUR_24 < $OFF_HOURS_TIMEFRAME && $PRIME_THRESHOLD <= $ELAPSTIME) { $STATUS_DB{$C_EWAY_NAME} = "THRESHOLD ERROR,Minimun prime message threshold not met,". "$CRITICALITY".","."$TIMESTAMP"; print PROGRAM_LOG "Ran thru day prime M-F \n"; }elsif ($OFF_HOURS_THRESHOLD <= $ELAPSTIME) { $STATUS_DB{$C_EWAY_NAME} = "THRESHOLD ERROR,Minimun off hours message threshold not met,". "$CRITICALITY".","."$TIMESTAMP"; print PROGRAM_LOG "Ran thru day off hours M-F \n"; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]