On 11/6/22 11:21, Hans Hagen via ntg-context wrote:
> [...]
> More relevan tis that you'r on TeX where catcodes matter
> (here letter vs other)
>
>\doifelse{\inputfilebarename}{oeps}
> {yes}{no}
>
>\doifelse{\detokenize\expandafter{\jobname}}{\detokenize{oeps}}
> {yes}{no}
On 11/5/22 16:55, Wolfgang Schuster via ntg-context wrote:
> Pablo Rodriguez via ntg-context schrieb am 05.11.2022 um 16:30:
>>
>>\doifelse{\jobname}{a}
>> {yes}{no}
>>
>> I get "no" as in TeX and "yes" with Lua, being "a.tex" the source file.
>>
>> The TeX conditional used to work
On 11/5/2022 4:30 PM, Pablo Rodriguez via ntg-context wrote:
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
Pablo Rodriguez via ntg-context schrieb am 05.11.2022 um 16:30:
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