Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: fail Statement Up: Statements Previous: Loops


return Statement

Normally a function's execution proceeds until the last statement of the function, as discussed in Chapter 6, page [*]. If that statement is an expression then the value of the expression becomes the result of the function call; otherwise the result is F. A function can also prematurely terminate using the return statement, which has two forms:

return

return expression
The first form results in a returned value of F; the second form returns the value of expression. (See Chapter 6, page [*], for examples.)


next up previous contents index
Next: fail Statement Up: Statements Previous: Loops   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15