Hello,

I'm relatively quite new to TeX world. This is my first message to list. I
hope you understand me, English isn't my mother language.

I'm trying to use a variable set by \setvariable in Lua. I tried some
combinations, based on manual but I couldn't succeed. The code below
exemplifies what I wanted to do.

\starttext
\setvariable{namespace}{var}{Some context}
\ctxlua{
  local s = context.getvariable("namespace", "var")

  if s == "" then
    ...
  else
    ...
  end
}
\stoptext

I know that I can use some of \if* TeX commands, but coding in Lua is
better to me.

--
Wagner Macedo
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to