On Thursday, January 30, 2003, at 09:33  AM, Duane Koble wrote:

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.
You could use a nested if statement, right? The innermost "if" would set the variable if true, and it would never be evaluated if the prior two were not true.
While I'm sure a more elegant solution exists, I've used nested if clauses for this purpose. Since my Perl repertoire is mostly hammers, I mostly beat Perl things with hammers ....

Take care,
Chris


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to