I've found this command:
\setupheadertexts[][{\getmarking[sectionnumber]\ \getmarking[section]}]
to show the current section in the header. But how can I show either the current chapter or the current section in the header depending on the fact the current page already belongs to a section or not?
