Conditional Break Inside Infinite Loop