Unfortunately, it doesn't resolve the problem...
 
 
 ! Undefined control sequence.
\cleanuplabel #1->\begingroup \let :
                                    \lettercolon \xdef \cleanlabel {#1}\endg...
\docheckformode #1#2#3->\cleanuplabel {#3}
                                          \protect \checkedmodefalse \rawpro...
\myHeader ->\doifmodeelse {a}
                             {chapter}{high}
\doifvaluesomething ...inga {\csname #1\endcsname
                                                  }\ifx \!!stringa \empty \e...
<argument> ...ething {\??ko \v!chapter \c!header }
                                                   {\setuplayouttext [\v!hea...
\firstoftwoarguments #1#2->#1
                            
...
l.23 ...apter #1}\dorecurse{20}{\input knuth\par}}
                                                 
?
 
 
context.cmd --modes=a test
 
Alan


 
On Sat, Feb 14, 2009 at 7:28 PM, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

Am 14.02.2009 um 19:17 schrieb Alan Stone:


The underneath example works with \def\myHeader{\iftuut chapter\else high\fi}

How do you make it work with\def\myHeader{\doifmodelse{a}{chapter}{high}} ?
( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} )

[...]


 ! Undefined control sequence.
\myHeader ->\doifmodelse

\doifmodeelse (a 'e' is missing in the command)


Wolfgang