This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

End

End[]
returns the present context, and reverts to the previous one.
  • Every call to End must be balanced by an earlier call to Begin.
  • End[] returns the present context name as a string of the form "context`".
Define a function f in the MyContext` Context:
Restore the context:
The context is now what it was before Begin was used:
New in 1