Thanks! That's what I needed.
--Mohammad

On Sat, Mar 29, 2025 at 2:23 PM Wolfgang Schuster <
[email protected]> wrote:

> Am 29.03.2025 um 16:22 schrieb Mohammad Hossein Bateni:
> > 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?
>
> Replace \doifelse with \expdoifelse or \expandeddoifelse.
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

Reply via email to