something_is_valid = something > 0 and something != foo and something > bar if something_is_valid: # ....