Quinch Posted August 12, 2008 Share Posted August 12, 2008 Just for a quick check about how the Return command works - does it terminate the function as soon as it's called {returning given value in the process}, or do and additional commands after it continue to execute until EndFunc is reached? It seems to be the former, but it's best to confirm. Link to comment Share on other sites More sharing options...
DaRam Posted August 12, 2008 Share Posted August 12, 2008 Former. To clarify the first return in the function encountered depending on the code. You could have multiple return statements that are condition based: If SomeCondition Then Return 1 Else Return 0 EndIf Just for a quick check about how the Return command works - does it terminate the function as soon as it's called {returning given value in the process}, or do and additional commands after it continue to execute until EndFunc is reached? It seems to be the former, but it's best to confirm. Link to comment Share on other sites More sharing options...
DjDeep00 Posted August 12, 2008 Share Posted August 12, 2008 From the Help File...Use the Return keyword to exit the function. Unlike built-in functions, user-defined functions return 0 unless another return value is specified. Link to comment Share on other sites More sharing options...
Quinch Posted August 12, 2008 Author Share Posted August 12, 2008 From the Help File...Heh, thanks for the confirmation. I tried looking up the Help file, but put "return" in the search and see what you get... Link to comment Share on other sites More sharing options...
DjDeep00 Posted August 12, 2008 Share Posted August 12, 2008 (edited) Heh, thanks for the confirmation. I tried looking up the Help file, but put "return" in the search and see what you get...Look it up by keyword (Index). Edited August 12, 2008 by DjDeep00 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now