8 Feb
2018
8 Feb
'18
10:50 a.m.
Hello, 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? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396