Hello, Here's a MNWE:
------------------------------- \starttext \def\A{a} %\def\A{b} \ctxlua{LuaA("\doifelse{\A}{a}{ey}{bee}")} \stoptext ------------------------------- I put \expanded and \expandafter here and there, but couldn't get this to work. Is the problem due to \doifelse scanning its input? If yes, how can we handle this? Thanks, Mohammad
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___________________________________________________________________________________