[Therion] code tex-map if/else
Torsten Schnitter
torsten.schnitter at netcologne.de
Thu Mar 26 13:25:27 CET 2026
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20260326/e60f0129/attachment.htm>
More information about the Therion
mailing list