Off

Off[symbol::tag]
switches off a message, so that it is no longer printed.

Off["name"]
switches off a named group of messages.

Off[s]
switches off tracing messages associated with the symbol s.

Off[m1, m2, ...]
switches off several messages or message groups.

DetailsDetails

  • The value of is not affected by Off.
  • $MessageGroups gives the list of possible message groups.
  • Off[General::name] switches off all messages derived from General::name.
  • Off[s] is equivalent to Off[s::trace].
  • Off[] is equivalent to Off[s::trace] for all symbols.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

In[1]:=
Click for copyable input
Out[1]=

Switch off the message:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Switch the message back on:

In[4]:=
Click for copyable input
New in 1 | Last modified in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »