# \value¶

Command in package counter.

## Synopsis¶

\value{counter}


## Description¶

Returns the current value of counter. This command is usually used in the arguments of other
commands, e.g. to set the value of one counter to the value of another counter (see example below).
In normal text, it prints the counter value.

## Example¶

\newcounter{foo}
\setcounter{foo}{4}
\newcounter{bar}

\setcounter{bar}{\value{foo}}

foo = \value{foo}, bar = \value{bar} 

Result, as rendered by your browser

foo = 4, bar = 4

This page is generated automatically and each change here will be replaced on a next update.

Add picture from clipboard (Maximum size: 500 MB)