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 expressionTypically, the expression is a string describing the error condition, and when no expression is provided, the last fail value generated is used, if available.fail
See Chapter 8.1, page , for a complete description of
fail.