![](https://secure.gravatar.com/avatar/af13db75aa1c24fee635c74fecf93090.jpg?s=120&d=mm&r=g)
21 Jun
2010
21 Jun
'10
11:41 p.m.
Hi, all. How do I know (due Lua) that the counter has not been defined in ConTeXt (through the command newcount)? I am trying testing : if tex.count.mycount == nil then... or if tex.count.mycount == 'error' then... then when counter isnt defined due \newcount\mycount, then test ending with error message. When counter is defined due \newcount\mycount, \mycount=1 then test if tex.count.mycount == 1 then... is OK... Thanx, Jaroslav