![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 17.01.2012 um 15:55 schrieb Felix Ingram:
Hello all,
I'm now trying to use counters that will tally some values. The value of these could be zero, which the wiki states will be the default value. The following shows that nothing is displayed when the counter is 0.
\definenumber[examplecounter] \setnumber[examplecounter]{1} \starttext This is the default value: \getnumber[examplecounter] \incrementnumber[examplecounter] This is the new value: \getnumber[examplecounter] \resetnumber[examplecounter] This is the reset value: \getnumber[examplecounter] \setnumber[examplecounter]{0} This is the set value: \getnumber[examplecounter] \stoptext
I can include some conditionals to check this but thought I'd report it in case I'm doing it wrong/the wiki needs updating.
The wiki explains often the behavior for MkII but MkIV does sometimes things different but when you need only the value of the counter without chapter or section prefixes you can use \rawnumber which shows also the start value. BTW: In the next beta the syntax for \setnumber will change, now both arguments are written in brackets, e.g. \setnumber[mycount][4] Wolfgang