@Klippy, just remember that that code is technically less efficient than simply implementing a switch. However, that is basically what I said for my alternative approach that is more flexible and is definitely worth it. Also, this is Scripting Help, you should try to have him learn something instead of doing it all for him.