Hi Gerben
So I would like something like
\doifmodeselse{all,editor)
that should work already with \doifmodeelse, where the default is 'or'
there is also an 'and':
\doifallmodeselse{all,editor)
\doiffmodeselse{not test or editor}
maybe later, in mkiv
test:
\starttext
\enablemode[a,c]
\doifmodeelse {a} {okay}{oeps} \par
\doifmodeelse {b} {oeps}{okay} \par
\doifmodeelse {a,c} {okay}{oeps} \par
\doifallmodeselse{a,c} {okay}{oeps} \par
\doifallmodeselse{a,b} {oeps}{okay} \par
\stoptext
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________