![](https://secure.gravatar.com/avatar/c83fb4134167a11422c23048fb8a85e3.jpg?s=120&d=mm&r=g)
2 Apr
2009
2 Apr
'09
10:01 a.m.
Using --mode or --modes with texexec sets up modes which can be used in the files to parse different parts. For that I use \doifmodeelse{}{}{} But combining various modes in one \doiffmodeelse would be handy. e.g. (pseudocode) if mode is workinprogress or test or the other way around if mode is all or editor So I would like something like \doifmodeselse{all,editor) or even better booleans \doiffmodeselse{not test or editor} so I do not need to build a large setup of nested \ifmodeelse This is not in ConTeXt currently. Would it be easy to program such a multiple modes selector? G