This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Mathematica Sessions  /

  • Exit[ ] terminates a Mathematica session.
  • Exit is a synonym for Quit.
  • Exit terminates the session even if called from within Dialog.
  • On some computer systems, Exit[ n ] can be used to pass the integer exit code n to the operating system.
  • See the Mathematica book: Section 2.13.1Section A.7.5.
  • See also: Return, $IgnoreEOF.