Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > Mathematica Sessions > Mathematica Session History >
Mathematica > Notebooks and Documents > Notebook Basics > Managing Computations in Notebooks > Mathematica Session History >

$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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team