How would I do something like this pseudo-code:
\if{#1==5 or \x>7}{Command 1}
\else{Command 2}
where #1
is some argument in a \newcommand
and \x
could come from a \foreach \x in {0,1,2}
, for example. I'm trying to use etoolbox and after reading some pages of the manual I thought this could be a job for \ifboolexpr
, but in every way I try to write it I receive an error of invalid boolean expression. I believe I'm basically asking what's the equivalent of this answer with the etoolbox package: Boolean operators: can I use AND, OR in `\ifthenelse`? How?