In some hand-me-down tex i inherited, a control sequence is used as a variable, for instance:
it is used to generate postfixes on included tex files (called, i.e.,
image01_ats) and the like.
I want to use it in a conditional structure, i. e. something like
\if\accessflavor ats This text is only shown if the Flavor of Access is 'ats'. \fi
I tried a a lot of variations, including various brackets, escape sequences and macros, but i cannot get it to work. Mostly, not even an error message appears. The online examples i found either deal with a more specific IF, like
\ifx, etc., or more (seemingly) complex cases like testing two macros for identity.
Can somebody clear up the usage for me?