0

Is there a way to make a conditional where the test is the definition of a counter with a specific name, i.e. "if there exists a counter named foo, then do [bar], otherwise do [baz]"? If so, how do I do that?

3
  • \@ifundefined{c@foo}{No foo counter}{There's a foo counter}
    – egreg
    Mar 23, 2014 at 17:19
  • \@ifundefined{c@mycounter}{something}{something else} Mar 23, 2014 at 17:20
  • @egreg can type faster than me Mar 23, 2014 at 17:21

0

Browse other questions tagged .