An opthalmologic apparatus changes the wavelength of index light, which is projected on an eye to be examined, by selecting the light emission of a visible LED and an infrared LED, and changes the position of a split unit along an optical axis based on the selection.