On 28-1-2011 3:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
how to test by Lua whether a Ctx buffer exists?
\doifelsebuffer
---
\startbuffer[A]
Aaa aaa
\stopbuffer
\starttext
\getbuffer[A]
Test
%\getbuffer[NonExisting]
Vvv
\stoptext
---
To get something like 'context.buffers.A' -> no-nil and
'context.buffers.NonExisting' -> nil?
Best regards,
Lukas
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________