Yaeh, it's possible to do this. Basically you start with the "most likely" case (well, it doesn't really matter what order, but I do it that way since it makes more sense to me), test for it, and if the test passes then execute that part of the script. So in your case here I'd have something like this:global proc…