Jump to content
Sign in to follow this  
mianz

How to stop script from returning to previous function

Recommended Posts

mianz

Hi, i have a script.

function a()

if something = not available then

b()

endfunc

function b()

something something

endfunc

is there anything that i can type to make the script not returning back to function a after it has excute all the codes in function b???

Share this post


Link to post
Share on other sites
E1M1

exit

exitloop

return

let me know if this helps u.


edited

Share this post


Link to post
Share on other sites
mianz

exit will terminate the whole script

it's not a loop so i can't use exitloop.

return is of no use because i don't want it to return to function a

HELP ANY!

exit

exitloop

return

let me know if this helps u.

Share this post


Link to post
Share on other sites
mianz

while 1 and Wend

or Do until...

ok return will help. i'll just return to function a and a return will end function a. thanks manx

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.