Welcome to KORG!

You might be better served by a Select / Case / EndSelect construct, since that's what you're trying to accomplish with the "Else If" in your code, which isn't supported...

Glenn
_________________________
Actually I am a Rocket Scientist! \:D