Hi Hans,
is \ifsectionnumber really needed?
When you run the following example \setuphead sets \ifsectionnumber to false and this disables are heading numbers:
\setuphead[section][number=no]%\sectionnumbertrue
\starttext
\chapter{Chapter}
\section{Section}
\stoptext
Wolfgang