I am trying to compile an if statement in python where it checks two variables to see if they are <= .05. Now, if both variables are True, I just want the code to go through / continue, but if only one of the variables is True, then I want the code to do something. eg:
ht1 = 0.04 ht2 = 0.03 if (ht1 <= 0.05) or (ht2 <= 0.05): # do something else: pass
I do not think that this example will work as I would like, since my understanding of OR is equal to 1 True condition or both conditions return True. If someone could persuade me to point me in the right direction, that would be very grateful.
source share