Place this at the beginning of the script
Thanks for that..
The only thing is it didnt like the End If...at the end, but i left it there and removed the End If at the very bottom of my script.
Is this a correct way?
A script should have the same amount of ifs as it has End ifs.
Regarding End If: why do you ask? Spend some time figuring out things for yourself.