Section 35 of Penal Code CAP 63: Absolute and conditional discharge
(1) Where a court by or before which a person is convicted of an offence is of opinion, having regard to the circumstances including the nature of the offence and the character of the offender, that it is inexpedient to inflict punishment and that a probation order under the Probation of Offenders Act (Cap. 64) is not appropriate, the court may make an order discharging him absolutely, or, if the court thinks fit, discharging him subject to the condition that he commits no offence during such period, not exceeding twelve months from the date of the order, as may be specified therein.
(2) Before making an order discharging a person subject to the condition referred to in subsection (1), the court shall explain to the offender in ordinary language that if he commits another offence during the period of conditional discharge he shall be liable to be sentenced for the original offence.
(3) Where an order discharging an offender under this section is made, the court may order him to pay the whole, or any part, of the costs of and incidental to the prosecution, and of any compensation adjudged under section 31.
Check the current authoritative text and amendment history before relying on this provision.