The ophthalmic apparatus is aligned to an eye to be examined. The apparatus is used to examine the eye. It has two or more infrared or near infrared light sources for emitting light beams and a detector sensitive to infrared or near-infrared light with the capability of detecting the light reflected from the examinee's face. It registers the examination result of the eye examined. The ophthalmic apparatus is aligned to an eye to be examined. The light beam of one infrared or near infrared light source is directed to the face. The light beam of another infrared or near infrared light source is directed to pass the examinee. The direction of the light reflected from the examinee's face is detected and the examination result and the examined eye are registered to know whether the examined eye was the right eye or the left eye.