8. Februar 2018 um 10:50Hello,
I'm trying to test whether value of \jobname is "Test"; I suppose it should be as the file name is "Test.mkiv".
But the code:
----
\starttext
\jobname
\doifelse{\jobname}{Test}{Yes}{No}
\def\T{Test}
\ifx\jobname\T True\else False\fi
\ctxcommand{doifelse("\jobname" == "Test")}{1}{0}
\stoptext
----
yields "No", "False" and "1", so only the printed "1" is what I expect.
Why \doifelse and \ifx are evaluated as false?