2.—(1) A person who–
(a)is–
(i)an EEA migrant worker or an EEA self-employed person;
(ii)a Swiss employed person or a Swiss self-employed person;
(iii)an EEA frontier worker or an EEA frontier self-employed person;
(iv)a Swiss frontier worker or a Swiss frontier self-employed person;
(b)has been ordinarily resident in the territory comprising the European Economic Area and Switzerland throughout the period of 3 years immediately preceding the first day of the first academic year of the course; and
(c)subject to sub-paragraph (2), is ordinarily resident in Scotland on the first day of the first academic year of the course.
(2) Sub-paragraph (1)(c) does not apply where the person applying for support falls within sub paragraph (1)(a)(iii) or (iv).