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.
Asked
Active
Viewed 1.3k times
21
1 Answers
32
\ifthenelse{1>2 \OR 3=3}{yes}{no}
\ifthenelse{1>2 \AND 3=3}{yes}{no}
produces
yes
no
David Carlisle
- 757,742
\ORand\ANDseetexdoc ifthen– David Carlisle Oct 07 '13 at 16:40\ifthenelse– David Carlisle Oct 07 '13 at 19:47ifthen, you should also take a look atetoolbox. – henrique Oct 07 '13 at 21:29etoolbox, you would want to look forifboolexpr(and others) with theirandandor(and more) operators. – Alex Povel May 07 '21 at 10:20