Mathematica 9 is now available
[an error occurred while processing this directive] $Line

  • $Line is a global variable that specifies the number of the current input line.
  • You can reset $Line.
  • See the Mathematica book: Section 2.13.1.
  • See also: In, Out, $HistoryLength.

    Further Examples

    This resets the value of the input prompt.

    In[1]:=

    Out[0]=

    Here is some input.

    In[1]:=

    Out[1]=

    The value of $Line will now be 2.

    In[2]:=

    Out[2]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.