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