Quiet

Quiet[expr]
evaluates expr "quietly", without actually outputting any messages generated.

Quiet[expr, {s1::t1, s2::t2, ...}]
quietens only the specified messages during the evaluation of expr.

Quiet[expr, "name"]
quietens only the named group of messages.

DetailsDetails

  • Quiet has attribute HoldAll.
  • Quiet[expr, moff, mon] specifies that messages in the list should not be generated, but those in should be.
  • Explicit message names of the form can be mixed with named message groups.
  • Quiet constructs can be nested; the innermost specification for a particular message is the one used.
  • The operation of Check and related message functions is not affected by being inside Quiet.
  • If Quiet is used inside functions like Check, messages suppressed by Quiet are not tested by Check.
  • In Quiet[expr, "name"], possible named message groups are given by $MessageGroups.
  • Quiet[expr] is equivalent to Quiet[expr, All]. Quiet[expr, None, All] switches on all messages.
New in 6 | Last modified in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »