$Line

$Line

is a global variable that specifies the number of the current input line.

Details

Examples

Basic Examples  (1)

The value of $Line corresponds to the numbers in In and Out:

It is incremented for every line of input:

You can reset it:

Wolfram Research (1988), $Line, Wolfram Language function, https://reference.wolfram.com/language/ref/$Line.html.

Text

Wolfram Research (1988), $Line, Wolfram Language function, https://reference.wolfram.com/language/ref/$Line.html.

BibTeX

@misc{reference.wolfram_2020_$line, author="Wolfram Research", title="{$Line}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/$Line.html}", note=[Accessed: 19-January-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_$line, organization={Wolfram Research}, title={$Line}, year={1988}, url={https://reference.wolfram.com/language/ref/$Line.html}, note=[Accessed: 19-January-2021 ]}

CMS

Wolfram Language. 1988. "$Line." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$Line.html.

APA

Wolfram Language. (1988). $Line. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$Line.html