I need to add an \if … else command to a class file I’ve written. The purpose is to determine how to enter a \addcontentsline command depending on whether or not hyperref has been loaded. What is the syntax for that \if … else command. Thank you, Clifford E. Weil Professor Emeritus Department of Mathematics Michigan State University East Lansing, MI, 48824-1027 USA