Jump to content

Return check


 Share

Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...