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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________