Where the case is dealt with in accordance with section 20(7) above, no court (whether a magistrates' court or not) may impose a custodial sentence for the offence unless such a sentence was indicated in the indication of sentence referred to in section 20 above.
Subsection (1) above is subject to sections 15(4), 18(8) and 21(6) of the Sentencing Code.
Except as provided in subsection (1) above—
Subject to section 20(7) above, the following shall not for any purpose be taken to constitute the taking of a plea—
Where the court gives an indication of sentence under section 20 above, it shall cause each such indication to be entered in the register.
In this section and in section 20 above, references to a custodial sentence are to a custodial sentence within the meaning given by section 222 of the Sentencing Code, and references to a non-custodial sentence shall be construed accordingly.