Arch, even though you've said it "works" for you, and it does work for the most part, there's no denying the fact that only ONE out of your 4 %r == 6 will get triggered. (The first one, that is) The rest will be ignored by the code routine. As napa's mentioned before you, I'm surprised you still acknowledge your snippet as "workable."