CHAPTER ONE
General Provisions
PART IV
PARTICIPATION AND INCHOATE OFFENCES
Attempts
Attempt to commit crime
77.— (1) If, with intent to commit an offence a person does an act which is more than merely preparatory to the commission of the offence, he or she commits the offence of attempting to commit the offence.
(2) A person may be guilty of attempting to commit an offence even though the facts are such that the commission of the offence is impossible.
(3) Where but for this subsection a person’s intention would not otherwise be regarded as having amounted to an intent to commit an offence, if however the facts of the case had been as he or she believed them to be, his or her intention would be so regarded then for the purposes of subsection (1), he or she shall be regarded as having had an intent to commit that offence.
EDIT.