Of course, the proper term is "scoped variable".
For others that may come across this topic:
Think of it like a
Java method. If someone were to ask "My method needs to to do something a little different when called from different locations. How can I find out with method called me so I can switch on that?", I'm sure every one would immediately say "Are you nuts? Just pass a parameter that you use to make your decision!"
Same deal!
Also think in terms of the strong versus weak coupling. Which approach is more versatile? Less fragile? More easily understood?