I would question how do I solve the following problem. This is a stylistic package where I needed to create a condition. I have made a choice of work as semestral, bachelor. When selecting semestral thesis to display only the author and supervisor. In the case of bachelor thesis is to show the author, supervisor and opponent. If there is no opponent yet specified in the header must also be displayed in the case bachelor thesis. Below you can see the result in the case of semestral and bachelor thesis.
This is a code:
\ifx\akt@type\type@semestral
\else
& \\%
{\slshape \csname opponenttext@\orig@lang\endcsname:} & \@Opponent \\%
\fi
(\opponent@lastname\relax)-if opponent is not specify
(opponenttext)-show Opponent.
(@Opponent)-name of opponent.
\akt@type\type@semestral-semestral thesis
\akt@type\type@bachelor-bachelor thesis
I think it could be done way with two conditions, such as:
if (\opponent@lastname\relax or \akt@type\type@semestral)
<DO NOT SHOW OPPONENT>
else
<SHOW OPPONENT>.
I do not know how to look the exact form of the condition. Can you help me?
First image is semestral thesis, it is ok, condition work, if it is a semestral thesis, opponent is not showed. Second image is bachelor thesis, where is specified a opponent (Lionel Messi for example) and it is showed. Third (last) image is bachelor thesis, where is not specified the opponent in the header, but is is showed.




\ifx\akt@type\type@semestral or \opponent@lastname\relax \else & \\% {\slshape \csname opponenttext@\orig@lang\endcsname:} & \@Opponent \\% \fi– Jakub Oškera Dec 25 '15 at 22:41\if) two days ago and it was closed as duplicated – Dec 25 '15 at 22:45tex-coresolution? (Probably not but maybe you do want a plain TeX solution?) – cfr Dec 25 '15 at 23:15