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.

Details

  • The value of symbol::tag 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.

Examples

open allclose all

Basic Examples  (2)

The following issues a message:

Switch off the message:

Now no message is issued:

Switch the message back on:

Do not suppress duplicated messages:

All five messages are issued:

Restore the default behavior:

After the third repetition, further identical messages are suppressed:

Scope  (3)

Turn off multiple messages:

No messages are issued:

Turn the messages back on:

Now messages appear:

Turn off the "Compiler" message group to prevent compiler messages from being issued:

No message is issued for an incorrect input:

Restore the default behavior:

The message is no longer suppressed:

Operations on symbols normally are done silently:

Use On to enable tracing of the symbol:

Turn tracing off:

Properties & Relations  (2)

Quiet can be used to leave messages on globally but suppress them in a particular computation:

The message is still issued by default for computations in the kernel session:

Check can be used to determine if a message was issued:

If a message is turned off, Check no longer reports message generation:

Restore the message:

Wolfram Research (1988), Off, Wolfram Language function, https://reference.wolfram.com/language/ref/Off.html (updated 2008).

Text

Wolfram Research (1988), Off, Wolfram Language function, https://reference.wolfram.com/language/ref/Off.html (updated 2008).

CMS

Wolfram Language. 1988. "Off." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/Off.html.

APA

Wolfram Language. (1988). Off. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Off.html

BibTeX

@misc{reference.wolfram_2024_off, author="Wolfram Research", title="{Off}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Off.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_off, organization={Wolfram Research}, title={Off}, year={2008}, url={https://reference.wolfram.com/language/ref/Off.html}, note=[Accessed: 21-November-2024 ]}