(A) Upon becoming a candidate for a nonjudicial elective office, a judge shall resign from judicial office, unless permitted by law* to continue to hold judicial office.
(B) Upon becoming a candidate for a nonjudicial appointive office, a judge is not required to resign from judicial office, provided that the judge complies with the other provisions of this Code.