VoiceGuide IVR Software Main Page
Jump to content

Goto Vs Gosub Usage Questions

Recommended Posts

Dear All,

 

Whats the different between goto & gosub.? From the VG Help. It look like their function are the same.

 

Could someone give me a example on use these modules ?

 

Thanks,

DinoM

Share this post


Link to post

a 'goto' results in a jump to a new script|module

 

a 'gosub' is a 'subscript' call - and then you can call 'return' within the called subscript to return back to the calling script - or to the module specified as the 'return to' module when 'gosub' was invoked.

 

The various goto/gosub/return paths are briefly demonstrated in the sample scripts in VoiceGuide's \scripts\more sample scripts\paths directory.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×