Problem with LOOP statement

The previous thread mentions both behaviors.