I am writing a task for users to run a custom python tool that adds developments such as an apartment complex or office park to a layer. For the first step, I want to let users zoom in on a municipality so it's easier to find the location (I think this is a pretty common first step). The first step is the Select Layer by Attributes tool, set to Auto Proceed. The second step is the Zoom to Selection command, set to Automatic and Hidden.
However, I want to allow users to skip this part of the task, if for example they are already looking at the right area or the development is in an unincorporated area that cannot be zoomed to. The problem is that I can make the Select step optional but not the hidden Zoom step, and then I get an error when the hidden step tries to run with no selection.
Is there any other way I can make step 2 optional? I am hoping I could either (1) only run Step 2 if Step 1 proceeds or (2) in Step 2, check if there is a selection and only run it if there is.