"""
date:     January 23, 2012
category: conditionals
purpose:  logical operators
"""

x = 5
y = 10

if x == 5 :
    if y == 10 :
        print("got here")

if x == 5 and y == 10 :
    print("got here too")


# check if x and y are each non-zero

if x and y :
    print("it must be true")

if not x and y :
    print("it must be true 2")

if not x or y :
    print("it must be true 3")

if x != 5 :
    print("won't get here")
else :
    print("this should work")
