First, perform the action. Then check the exit condition