The totalcount package should offer \iftotalcount
Migrated from https://sourceforge.net/p/latex-caption/tickets/36/
\iftotalfigures
\listoffigures
\fi
\totalfigures
is too TeXish. Since totalcount is a LaTeX package it would be nice to have a more LaTeXish approach additionally, e.g.
\iftotalcount{figure}{\listoffigures}{}
\totalcount{figure}
Edited by Axel Sommerfeldt