This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
[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]=