Conditional Steps based on Directory?

Wondering if it’s possible to have a build step be conditional on which directory was modified as part of the change?

This is also interesting to me… did you ever work out how to do this?

Thanks