Canon Zoom Mechanism

You seem to have several ELSE IF clauses ad it is not clear what they belong to. Use the AutoFormat tool to indent your code consistently and it will be easier to read. Then post the revised version.

...R