21

Can I use AND, OR in \ifthenelse from the ifthen package? If so, can you show me examples and links to documentation? This would make my life easier.

cabohah
  • 11,455
redblob
  • 211
  • 1
  • 2
  • 3

1 Answers1

32
\ifthenelse{1>2 \OR 3=3}{yes}{no}

\ifthenelse{1>2 \AND 3=3}{yes}{no}

produces

yes
no
David Carlisle
  • 757,742