slam666 0 Posted April 5, 2005 Hi, When you put a Return in a Func does the program continue to execute code after the Return or does it stop there and exit the func? Ex: Func A .... If $var = 1 Then Return ERROR Endif More code.... EndFunc Will the code exit the func if $var = 1 or will it continue to the end of the func then return ERROR Share this post Link to post Share on other sites
MHz 80 Posted April 5, 2005 Test() Func Test() MsgBox(0, 'Title', 'Does this work before Return?') Return SetError(1) MsgBox(0, 'Title', 'Does this work after Return?') EndFunc Hope this answers your question. Share this post Link to post Share on other sites