a = True b = False c = True d = False #before intention if a and b and c or d: print "before"