Wolfram Language & System 11.0 (2016)|Legacy Documentation
evaluates expr, and returns the result, unless messages were generated, in which case it evaluates and returns failexpr.
checks only for the specified messages.
checks only for messages in the named message group.
- Check has attribute HoldAll.
- 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.
- In Check[expr,failexpr,"name"], possible named message groups are given by $MessageGroups.
- Explicit message names of the form s::t can be mixed with named message groups.