> I'd like to do the following type of setup.
> 
> 
> if mainlanguage == kr then
> 
>       do something A
> 
> elseif mainlanguage == en then
> 
>       do something B
> 
> else
>       do something C
> 
> endif

\starttext
\startluacode
  if languages.current() == "kr" then
    context("Something A")
  elseif languages.current() == "en" then
     context("Something B")
  else
     context("Something C")
  end
\stopluacode
\stoptext

Marco


___________________________________________________________________________________
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