next up previous contents index
Next: exit Statement Up: Statements Previous: return Statement

fail Statement

 

  Typically a function returns by either executing the last statement of the function or an explicit return statement, the fail statement provides an alternate way to return. fail is used to indicate an error. It has two forms:

fail expression

fail

Typically, the expression is a string describing the error condition, and when no expression is provided, the last fail value generated is used, if available.

See Chapter 8.1, page gif, for a complete description of fail.



Thu Nov 13 16:44:05 EST 1997