(1) In anythe trial of a person on any charge charged with an offence to which this section applies, subject to section 275 288C of this Act applies, the court shall not admit, or allow questioning designed to elicit, evidence which shows or tends to show that the complainer—
(a) is not of good character (whether in relation to sexual matters;
(b) is a prostitute or an associate of prostitutes; or
(c or otherwise);
(b) has, at any time, engaged with any person in sexual behaviour not forming part of the subject matter of the charge.
(2) This section applies to a charge of committing or attempting to commit any of the following offences, that is to say—
(a) rape;
(b) sodomy;
(c) clandestine injury to women;
(d) assault with intent to rape;
(e) indecent assault;
(f) indecent behaviour (including any lewd, indecent or libidinous practice or behaviour);
(g) an offence under section 106(1)(a) or 107;
(c) has, at any time (other than shortly before, at the same time as or shortly after the acts which form part of the subject matter of the Mental Health (Scotland) Act 1984 (unlawful sexual intercourse with mentally handicapped female or with patient); …
(h) an offence under any of the following provisions of the Criminal Law (Consolidation) (Scotland) Act 1995charge), engaged in such behaviour, not being sexual behaviour, as might found the inference that the complainer—
(i) sections 1 to 3 (incest and related offences);is likely to have consented to those acts; or
(ii) section 5 (unlawful sexual intercourse with girl under 13 or 16);
(iii) section 6 (indecent behaviour toward girl between 12 and 16);
(iv) section 7(2) and (3) (procuring by threats etc.);
(v) section 8 (abduction and unlawful detention);
(vi) section 13(5) (homosexual offences) ; or
(j) an offence under section 1 or 2 of the International Criminal Court (Scotland) Act 2001 (asp 13) involving—
(i) conduct constituting any of the offences mentioned in paragraphs (a) to (h) is not a credible or reliable witness; or
(d) has, at any time, been subject to any such condition or predisposition as might found the inference referred to in sub-paragraph (c) above; or
(ii) an act committed outwith Scotland which, if committed in Scotland, would constitute any of those offences.
(3) In this section .
(2) In subsection (1) above—
“complainer” means the person against whom the offence referred to in that subsection (2) above is alleged to have been committed.
(4) This section does not apply to questioning, or evidence ; and
the reference to engaging in sexual behaviour includes a reference to undergoing or being adduced, by the Crownmade subject to any experience of a sexual nature.