<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hello all</p>
<p>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?<br />All I could find so far is just to check if the variable is not empty (\edef\tmp{\the\copyrights}\<span class="mark">ifx</span>\tmp\empty\else...\fi).</p>
<p>For example:</p>
<p>Set a variable with content "a":<br />\def\thvariable{a}</p>
<p>\def\thcontentA{a}<br />\def\thcontentB{b}<br />...<br />% if content is "a":<br />\ifx\thvariable\thcontentA .... \fi<br />% if content is "b":<br />\ifx\thvariable\thcontentB .... \fi</p>
<p>Thanks in adavance.<br />Torsten</p>
</body></html>