(A) Whoever, with intent to aid any prisoner in escaping from any penal institution, conveys into the institution, or transfers to the prisoner anything for use in escaping commits a Class A misdemeanor.
(B) Whoever knowingly aids a person convicted of a misdemeanor or charged with the commission of a misdemeanor, or charged with or adjudicated delinquent for an act which, if committed by an adult, would constitute a misdemeanor, in escaping from any penal institution or from the custody of an employee of that institution commits a Class A misdemeanor. However, whoever knowingly aids a person convicted of a misdemeanor or charged with the commission of a misdemeanor, or charged with or adjudicated delinquent for an act which, if committed by an adult, would constitute a misdemeanor, in failing to return from furlough or from work and day release is guilty of a Class B misdemeanor.
(C) Whoever knowingly aids a person in escaping from any public institution, other than a penal institution, in which he or she is lawfully detained, or from the custody of an employee of that institution, commits a Class A misdemeanor.
(D) Whoever knowingly aids a person in the lawful custody of a peace officer for the alleged commission of a misdemeanor offense in escaping from custody commits a Class A misdemeanor.
(E) An officer or employee of any penal institution who recklessly permits any prisoner in his or her custody to escape commits Class A misdemeanor.
(F) With respect to a person who is in the lawful custody of a peace officer for an alleged violation of a term or condition of supervision, probation, or conditional discharge for a misdemeanor, whoever intentionally aids that person to escape from that custody is guilty of a Class A misdemeanor.
(G) A person who violates this section while armed with a dangerous weapon commits a class two felony and shall be prosecuted under appropriate state law.
(ILCS Ch. 720, Act 5, § 31-7) Penalty, see § 130.99