|I am trying to write a script that when i type in somthing it will goto a specific peice of code. I have the goto part worked out by itself but when its coupled with a If Statement it does not work. Here is my code:|
Dim T As String
T = Text1.Text
If T = "gold" Then GoTo Runescape
If T = "Sponge" Then GoTo Bob
Text1.Text = "Gary"
Text1.Text = "Noob"
Text2.Text = T
I dont see what is wrong with my code but if someone does see it, could you point it out.