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:

  \ifx\jobname\T True\else False\fi
  \ctxcommand{doifelse("\jobname" == "Test")}{1}{0}

yields "No", "False" and "1", so only the printed "1" is what I expect.

Why \doifelse and \ifx are evaluated as false?

Best regards,


Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.      | mailto:pon...@pontex.cz | http://www.pontex.cz | 
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

Attachment: Test.mkiv
Description: Binary data

Attachment: Test.pdf
Description: Adobe PDF document

If your question is of interest to others as well, please add an entry to the 

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net

Reply via email to