results with a Bad character code (68222976) error. This is because \charifavailable{41}{False Case} expands to \char"41 and TeX's look ahead mechanism is not interrupted. It also means that \charifavailable{41}{False Case} B will produce AB, i.e. the space is gobbled.
I'm not sure if the space gobbling is intentional or not and so I don't know what is the correct fix. In either case the fix is easy.
I was going to reimplement
\charifavailable
and noticed that the following exampleresults with a
Bad character code (68222976)
error. This is because\charifavailable{41}{False Case}
expands to\char"41
and TeX's look ahead mechanism is not interrupted. It also means that\charifavailable{41}{False Case} B
will produceAB
, i.e. the space is gobbled.I'm not sure if the space gobbling is intentional or not and so I don't know what is the correct fix. In either case the fix is easy.