a = True b = False c = True d = False #before intention if not (not (a and b and c) and not d): print "before"