ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \jobname and \doifelse
@ 2022-11-05 15:30 Pablo Rodriguez via ntg-context
  2022-11-05 15:55 ` Wolfgang Schuster via ntg-context
  2022-11-06 10:21 ` Hans Hagen via ntg-context
  0 siblings, 2 replies; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-11-05 15:30 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Pablo Rodriguez

Dear list,

using current latest (2022.10.22 11:23), I have the following sample:

  \starttext
  \doifelse{\jobname}{a}
    {yes}{no}
  \jobname

  \startluacode
  if tex.jobname == "a" then
    context("yes")
  else
    context("no")
  end
  \stopluacode
  \stoptext

I get "no" as in TeX and "yes" with Lua, being "a.tex" the source file.

The TeX conditional used to work before.

Am I missing something or have I hit a bug?

I’m on Linux64 (if this may be relevant).

Many thanks for your help,

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-06 13:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-05 15:30 \jobname and \doifelse Pablo Rodriguez via ntg-context
2022-11-05 15:55 ` Wolfgang Schuster via ntg-context
2022-11-06 13:11   ` Pablo Rodriguez via ntg-context
2022-11-06 10:21 ` Hans Hagen via ntg-context
2022-11-06 13:12   ` Pablo Rodriguez via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).