Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Return

Usage

Return[expr] returns the value expr from a function.
Return[ ] returns the value Null.


Notes

Return[expr] exits control structures within the definition of a function, and gives the value expr for the whole function.
Return takes effect as soon as it is evaluated, even if it appears inside other functions.
Return can be used inside functions like Scan.
• See Section 2.6.9.
• See also: Break, Throw, Abort.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: