Is there a way to detect if the number of tables in the document is zero? If yes, then I want to hide (comment out) the
\listoftables
command. If the number of tables is non-zero, then the command should be included. Same for \listoffigures
.I searched google and this forum without any useful returns.
Thanks in advance,
Ben