Changes

Jump to navigation Jump to search
444 bytes added ,  12:27, 27 June 2015
no edit summary
<texcode>
\definenumber[examplecounter][way=bytext,prefix=no]
</texcode>
 
== Testing the Value of a Counter ==
If you need to test the value of a counter, use \rawcountervalue, not \getnumber:
<texcode>
\definenumber[mynumber][]
\setnumber[mynumber][42]
\doifelse{\getnumber[mynumber]}{42}{
Strange, {\tt getnumber} worked.
}{
Using {\tt getnumber} does not work.
}
 
\doifelse{\rawcountervalue[mynumber]}{42}{
Ok, the test with {\tt rawcountervalue} worked.
}{
Strange, {\tt rawcountervalue} failed.
}
</texcode>
24

edits

Navigation menu