def when_not(*desired_states): """ Check if not all of the desired_states are active and have changed. """ return helpers._when(desired_states, True)
def when(*desired_states): """ Check if all of the desired_states are active and have changed. """ return helpers._when(desired_states, False)