Use the \doiftext check or replace \structurelistuservariable (which is never empty because24. Januar 2018 um 08:51
Thank you, now I have:
\define[1]\ChapterTocEntry{%
\doifnotempty{\structurelistuservariable{author}}{\structureuservariable{author}\crlf }%
#1%
\doifnotempty{\structurelistuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}}
But author/subtitle still don’t show up in the ToC.