This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Check

Updated In 6 Graphic
Check[expr, failexpr]
evaluates expr, and returns the result, unless messages were generated, in which case it evaluates and returns failexpr.
Check[expr, failexpr, {s1::t1, s2::t2, ...}]
checks only for the specified messages.
  • Check does not test for messages that have been switched off using Off, or by uses of Quiet that occur inside it.
  • The operation of Check is not affected by being enclosed inside Quiet.
New in 1 | Last modified in 6