Fabrice Couvreur via ntg-context schrieb am 26.08.2021 um 19:06:
Hi,

Using this (almost what I'm trying to do) without success

[...]

\startsetups[header]
  \doifelse{\totalnumberofpages}{1}
    {\setupheadertexts[\setups{header}]}
    {}
\stopsetups


This stores the page check in the setups environment  but you never call it. The call from within the environment itself can't work because the content is never evaluated and even if it would be called you create an endless loop.

Wolfgang