Hello all

Is it possible to build an if/else block within tex code and check on special content of a variable so you can do different things depending on the content of the variable? All I could find so far is just to check if the variable is not empty (\edef\tmp{\the\copyrights}\ifx\tmp\empty\else...\fi).

For example:

Set a variable with content "a":
\def\thvariable{a}

\def\thcontentA{a}
\def\thcontentB{b}
...
% if content is "a":
\ifx\thvariable\thcontentA .... \fi
% if content is "b":
\ifx\thvariable\thcontentB .... \fi

Thanks in adavance.
Torsten
_______________________________________________
Therion mailing list
[email protected]
https://mailman.speleo.sk/listinfo/therion

Reply via email to