Mathematica 9 is now available

Check

Usage

Check[expr, failexpr] evaluates expr, and returns the result, unless messages were generated, in which case it evaluates and returns failexpr.
Check[expr, failexpr,  :: ,  :: , ... ] checks only for the specified messages.


Notes

Check has attribute HoldAll.
Check tests only for messages that are actually output. It does not test for messages that have been suppressed using Off.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.