in reply to Logical AND

either reverse the if statements, or use an

elsif

in place of

if

for the second statement

CH in NE PA