4 May
2010
4 May
'10
11:02 a.m.
On Tue, May 04 2010, Peter Münster wrote:
How can I get the value of a variable or a mode in the lua part?
The solution is so simple... : \ctxlua{userdata = userdata or {}; userdata.myvar = \env{MyVar}} \starttext \startluacode if userdata.myvar then tex.print("TRUE") else tex.print("FALSE") end \stopluacode \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/