-
Notifications
You must be signed in to change notification settings - Fork 124
Description
Hello,
I am attempting to use etoolbox for various logical operators to conditionally write text. I ultimately want to use \ifboolexpr, but I can't seem to understand how \ifstrequal behaves. Specifically, I am getting two outputs when a condition is met. Is this intended? Am I using this incorrectly? I am not sure how I could provide the output of my working example, but I get:
Test1: TRUETRUE
Test2: FALSEFALSE
Thank you in advance for taking the time to read and reply.
-Alan
Working Example:
---
output: pdf_document
header-includes:
- \usepackage{etoolbox}
---
Test1: \ifstrequal{hello}{hello}{TRUE}{FALSE}
Test2: \ifstrequal{hello}{world}{TRUE}{FALSE}
xfun::session_info('tinytex')
R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)
Locale:
LC_COLLATE=English_United States.utf8
LC_CTYPE=English_United States.utf8
LC_MONETARY=English_United States.utf8
LC_NUMERIC=C
LC_TIME=English_United States.utf8
Package version:
graphics_4.5.1 grDevices_4.5.1 stats_4.5.1 tinytex_0.57
tools_4.5.1 utils_4.5.1 xfun_0.53
LaTeX version used:
TeX Live 2025 (TinyTeX) with tlmgr 2025-05-13