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

$Line

$Line
is a global variable that specifies the number of the current input line.
The value of $Line corresponds to the numbers in In and Out:
It is incremented for every line of input:
You can reset it:
The value of $Line corresponds to the numbers in In and Out:
In[1]:=
Click for copyable input
Out[1]=
It is incremented for every line of input:
In[2]:=
Click for copyable input
Out[2]=
You can reset it:
In[3]:=
Click for copyable input
Out[3]=
New in 1