In my case, the Lua function will run some processing on the input from \doifelse.
On Sat, Mar 29, 2025 at 12:18 PM Rik Kabel <[email protected]> wrote: > > On 2025-03-29 11:22, Mohammad Hossein Bateni wrote: > > \starttext > \def\A{a} > %\def\A{b} > \ctxlua{LuaA("\doifelse{\A}{a}{ey}{bee}")} > \stoptext > > > This works: > > \starttext > \def\A{a} > \def\A{b} > \cldcontext{"\\doifelse{\\A}{a}{ey}{bee}"} > \stoptext > > as does this: > > \starttext > \def\A{a} > \def\A{b} > \ctxlua{context("\\doifelse{\\A}{a}{ey}{bee}")} > \stoptext > > -- > Rik > > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : [email protected] / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___________________________________________________________________________________ >
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
