Is there a way of using a GOTO, for example,

test1 = "test1"

if test1 = "test1" then
goto test2

test2 = "test2"

Re: GOTO Call in VBS by Ray

Ray
Fri Aug 01 15:55:36 CDT 2003

No, goto is not supported in VB Script.
http://msdn.microsoft.com/library/en-us/script56/html/vsgrpnonfeatures.asp
(Control Flow)

You can do something like:

If test1 = "test1" Then Call SomeSubRoutine

Ray at work

"JC" <Josh@Network-Medics.Com> wrote in message
news:%23iqujyGWDHA.656@tk2msftngp13.phx.gbl...
> Is there a way of using a GOTO, for example,
>
> test1 = "test1"
>
> if test1 = "test1" then
> goto test2
>
> test2 = "test2"
>
>