Forum Discussion

PritamHP's avatar
PritamHP
Occasional Visitor
8 years ago

How to skip specific lines during scripting. Like Go To function in language C

Hello All,

 

 Could you please help me in understanding of How to skip the execution of Script lines in run time.

for suppose once the if condition is true I want to skip few lines in the script
currentcursor at 100th line
eg:
if (a=10)
Goto line 400
Endif

 

Like C there is GO To Function.

 

I am using VB scripting for coding.
Please help me.

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Rather than GoTo, what you should do is make the code at line 400 a separate function/subroutine and execute it when your condition is true.