This is documentation for Mathematica 8, 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 .
Define a function in the Context:
Restore the context:
The context is now what it was before Begin was used:
Define a function in the Context:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Restore the context:
In[4]:=
Click for copyable input
Out[4]=
The context is now what it was before Begin was used:
In[5]:=
Click for copyable input
Out[5]=
New in 1