ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* doifnextcharelse
@ 2016-01-24 13:30 dr. Hans van der Meer
  2016-01-24 14:13 ` doifnextcharelse Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: dr. Hans van der Meer @ 2016-01-24 13:30 UTC (permalink / raw)
  To: NTG ConTeXt

I would like to differentiate on the following character being one of  X or not X.
But cannot get it right in \doifnextcharelse.

For example 
\def\mynextchar{\doifnextcharelse{X}{\def\Next{Y}}{\def\Next{Z}}\Next} delivers: ZX ZQ
then input: \mynextchar X \mynextchar Q
I hoped for YX ZQ, but it looks as if X tested false against X.

How to?

Hans van der Meer

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-01-24 18:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-24 13:30 doifnextcharelse dr. Hans van der Meer
2016-01-24 14:13 ` doifnextcharelse Pablo Rodriguez
2016-01-24 14:58   ` doifnextcharelse Meer, Hans van der
2016-01-24 18:15     ` doifnextcharelse Meer, Hans van der
2016-01-24 18:21     ` doifnextcharelse Wolfgang Schuster

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).